on 04-02-2024 9:20 PM
As documented in SAP Commerce Cloud Service Description, SAP Commerce Cloud offers a variety of different sizes of sandbox environments with their own respective resource limitations.
As such, often one may see an issue starting with Data related aspects of the application if these limitations are not taken in account. E.g.: Import Database backup from higher tier into lower environments, specially in case of Development.
Therefore, in this case it is worth highlighting the content found in Sandbox Data Guidelines:
Now in case you're not sure how to check the sizes of the referred tables from this document, you may perform this simply by accessing your HAC endpoint and running queries to check this Data Volume.
import de.hybris.platform.servicelayer.search.FlexibleSearchQuery;
import de.hybris.platform.servicelayer.search.SearchResult;
FlexibleSearchQuery flexibleSearchQuery=null;
/*Check the size of the given types*/
def types = ["Product","ProductFeature","Cart","Order","User","Address"];
types.each{type->
query = "select count(*) from {"+type+"}";
flexibleSearchQuery = new FlexibleSearchQuery(query);
List l = new ArrayList();
l.add(Integer.class);
flexibleSearchQuery.setResultClassList(l);
SearchResult result = spring.getBean("flexibleSearchService").search(flexibleSearchQuery);
println type +": " + result.getResult().get(0);
}
Hi @Romulus
Thanks for the helpful Groovy Script and link to recommended maximums for CCV2 (SAP Commerce Cloud) sandbox environments.
I'd also recommend utilizing the HAC Azure SQL Schema browser if you are able to understand the mapping of item types to database tables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.