Sark
Sark

Reputation: 4546

Size limit for a single shopify meta field

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

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

Upvotes: 10

Views: 5806

Answers (2)

Steph Sharp
Steph Sharp

Reputation: 11682

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).

Upvotes: 3

Josh Brown
Josh Brown

Reputation: 4106

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

Upvotes: 9

Related Questions