Limits on Shopify metafields

我与影子孤独终老i 提交于 2019-12-10 22:20:53

问题


I was wondering what the limits were on the number of metafields that an entity in Shopify could have. For instance, under a given namespace for a product object, could you have 1000 unique key value pairs? Is there a hard limit?

Please note I have consulted the documentation on Shopify's Metafield API page (http://api.shopify.com/metafield.html) but it only states the following limits:

The namespace has a maximum of 20 characters, and the key has a maximum of 30 characters.

Thanks for help!


回答1:


There's no hard limit, but if you're storing that much info you might want to consider doing it locally as retrieving it will become a pain.




回答2:


The most metafields that we've applied to any given element to date is 5434. We have a collection that currently contains that many metafields, and it seems to be working fine!

I wouldn't advise doing this, as it's a nightmare to find and remove any via Postman if manual intervention is required. But it's certainly possible!




回答3:


If you had the following MyNS.Key1 = 1 MyNS.Key2 = 2 ... MyNS.Key1000 = 1000

You should be able to access it like products.metafields.MyNS[someKey]

So not too difficult to retrieve, or am i missing something else



来源:https://stackoverflow.com/questions/12715506/limits-on-shopify-metafields

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!