Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Size limit for a single shopify meta field

Tags:

shopify

Is there any size limitation on a single Shopify Meta Field.?

like, upto 1kb of data only allowed to store.

like image 447
Sark Avatar asked Jan 02 '15 21:01

Sark


2 Answers

Yes. The value is limited to 65,535 characters, the same as a MySQL TEXT column. Keys are limited to 30 characters and the namespace is limited to 20 characters.

https://groups.google.com/forum/#!msg/shopify-app-discuss/os_Ll7PChGg/jpQgOKwSANEJ http://docs.shopify.com/api/metafield#create

like image 197
Josh Brown Avatar answered Jan 04 '23 16:01

Josh Brown


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

Regarding the length of the value, see here:

The current implementation of a metafield value field is a MySQL TEXT column... a TEXT column has a maximum length of 65535 (2^16 - 1) characters. I’m not encouraging you to start storing enormous blobs, but the limit is pretty big.

Also, there is no limit on how many metafields you can have (see here and here).

like image 38
Steph Sharp Avatar answered Jan 04 '23 15:01

Steph Sharp