Skip to content

Is there a configuration option to prevent the database from stumbling over entities with large lists? #1690

Answered by refset
philippkueng asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @philippkueng - thanks for the question and for providing a very clear repro!

Is there a way I can tell XTDB to not bother indexing the list?

For the index-store in general, 'no', although Lucene indexing can be configured (via a custom indexer) to ignore certain attributes:

:when (contains? #{:product/title :product/description} a) ;; example - don't index all attributes

Or do you see any other ways to mitigate such an issue?

You can often avoid some encoding overheads (during indexing, at least) by pushing the list into a nested structure (since top-level values (including elements of ve…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by refset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants