Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Functions maximum instructions make it unusable for something complex ?

Functions maximum instructions make it unusable for something complex ?

SPEAZ
Shopify Partner
31 3 18

Hi 🙂 Previously functions was unusable for me due to the limit of 1000bytes on metafields.

Now that's it got increased to 10000bytes, i've tried again to migrate my code to functions but the maximum of 11 million instructions is just making it unusable for my case ? 

 

I dont understand how is it possible to built something reliable & complex with that limit ? more you got product on cart more the intructions will increase and make the function just not to work ? how can we rely on something who totally depend of what's in cart , what settings merchant used etc ? since if merchant make different settings then there will be more instructions ? 

 

there is already restrictions on size / metafields /memory etc my function is only 26KB in size but with 2 products it's already reach the limit of instructions , it's so frustrating..

 

did i miss something or functions stand just for build something simple only ?

Reply 1 (1)

hannahrbeasley
Shopify Partner
4 0 2

We've run into the same issue using the Regios Discounts app which is great, but our discounts, which don't have crazy logic, start to fail on larger carts. There's a Github discussion on this here: https://github.com/Shopify/function-examples/discussions/329 Trying to get any and all attention from Shopify on this to increase limits - since this is really making the switch from Shopify Scripts to Functions not at all smooth for our merchants who are used to pretty complex and customized discounts - that now are just not stable/possible with Functions because of the limitations.