This message was deleted.
# community-help
s
This message was deleted.
j
In general I would recommend storing the full strings in Typesense instead of just the ID, especially if you want to use them in some search operations (eg: sorting, faceting, grouping, etc). Repeated strings are only stored once in the in-memory index, so it "compresses" effectively.
👍 1
v
Are there any particular benefits to this approach? It has its own downsides: • To translate the values, instead of doing simple value→label remapping on the client based on the current locale, we have to store values in all languages in separate fields; • When such a value is renamed by the user, a complex synchronization logic must be implemented. E.g., a bunch of collections has a "customer" field, and if a user renames a customer, this change should be correctly propagated to all collections that use this field. If the value is stored instead of the label, no changes are required in this case (value→label remapping is done on the client dynamically).
j
Performance would be the main advantage. You can send requests to Typesense directly and render the full search results page with just data from Typesense instead of having an intermediate post-processing step through your backend.
👍 1