#community-help

Query on Performance Impact Between String Array and String

TLDR Aljosa asked about performance differences between using a string array and a string. Kishore Nallan confirmed no significant impact, only minor memory overhead.

Powered by Struct AI

1

3
25mo
Solved
Join the chat
Oct 26, 2021 (25 months ago)
Aljosa
Photo of md5-6bb7313b20c5179141d6908d6c09b2d5
Aljosa
09:52 PM
Is there any significant performance hit to worry about if i were to set my facetable fields as a string array string[] instead of just a regular string ?

The reason is that in my dataset between different groups of items, field names are shared (with a good reason) but in some cases they are arrays of string rather than string. It seems easier to just set everything to be an array, unless there is a huge performance hit
Oct 27, 2021 (25 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:52 AM
No, there shouldn't be any difference between string array and string, except for some additional book keeping memory overhead, which will also not be significant.

1

Aljosa
Photo of md5-6bb7313b20c5179141d6908d6c09b2d5
Aljosa
04:03 PM
Thank you 🙂