Hi,
My Gadget usage exceeds 100hours every month. Are there any tips on how to reduce usage?
I stopped automatic store syncing. Reduced models syncing on store install with
await api.shopifySync.run({
shopifySync: {
domain: record.domain,
shop: {
_link: record.id,
},
models: [
"shopifyProduct",
"shopifyCollection",
"shopifyMarket",
"shopifyMarketRegion",
"shopifyMarketWebPresence",
"shopifyProductVariant",
"shopifyShop",
"shopifyAppSubscription",
],
},
});
Any more tips on what we can do here?
I noticed that queries like this to delete data also cause usage to grow:
await api.internal.shopifyCart.deleteMany({ filter: { shopId: { equals: shopId } } });
Is there like a basic 101 article on what is usage and how can we optimize? Please do help share any optimizating tricks that worked for you. Thanks.