#community-help

Maximum Number of Fields in a Document

TLDR Rodrigo inquired about the maximum number of fields a document can have. Kishore Nallan assured there's no limit.

Powered by Struct AI

1

3
19mo
Solved
Join the chat
Apr 05, 2022 (19 months ago)
Rodrigo
Photo of md5-a44370e02319c89dae88dfe862d1739c
Rodrigo
05:22 AM
Hi guys, do you have an idea of what is the max. number of fields a document can have? I'm having a case of many dynamic fields (~40) coming from an object, since TS doesn't support nested structures yet. Performance wise, does it make a difference?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
05:56 AM
Not a problem, you can have as many fields as you want. Even if Typesense supported nested structures, those fields would anyway have to be stored individually: the engine will do the flattening operation instead of doing it externally.

1

Rodrigo
Photo of md5-a44370e02319c89dae88dfe862d1739c
Rodrigo
07:06 AM
I see, thanks! 🙂