I’ve been reading through Algolia’s size limits and handling indexing of large documents, and I have a question regarding the optimal way to structure properties that might contain a long string of text.
For the purpose of semantics, what I refer to as a “property” would be interchangeable with what Algolia calls a record’s “attribute”.
We have run into property (attribute) kb limits before and are trying to avoid them.
My question is in relation to the two following data structures that might contain a property with long set of comma delineated strings:
{
property: ["value1", "value2", "value3", "value4"]
}
versus, something that breaks this up into multiple sub properties:
{
property: {
subprop: "value1",
subprop: "value2",
subprop: "value3",
subprop: "value4"
}
}
- Given an attribute with the following two structures, does Algolia’s record limit see these as different sizes, with one accommodating more properties than the other?
- Is there a benefit to one over the other in terms of hitting record limits? Or are they seen as essentially the same to Algolia in terms of these limits?
- If you had to have a record with a property that might be a very long list of keywords/tags, would the different data structures above help prevent hitting record limits?
- If not, how could you accomodate a long list of keywords/tags to be used as a searchable attribute as to not hit record limits?
(Outside of the obvious “limit the number of properties and their character lengths” which poses a challenge of knowing the right “size” to limit for Algolia records)
Thanks hoping someone can help me out in understanding this so we can better prepare our data for Algolia!