Performance Discussion: Indexing languageCode in translatable entities #3310
asonnleitner
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to start a discussion about potentially indexing the
languageCode
column in translatable entities to improve query performance in multi-language stores.Background
When working extensively with translated content in vendure channels, many queries for translatable entities end up including WHERE clauses filtering by languageCode, especially in services that heavily interact with language-specific content. Currently, the languageCode column in translatable entities (Product, Collection, etc.) is not indexed by default, which might lead to full table scans when searching for specific language content.
Points for Discussion
Performance Implications
Implementation Considerations
Storage Impact:
Write Performance Trade-offs:
Implementation Strategy Options:
Technical Details
Affected entities would include:
Questions for the Community
Your Experience
I'm particularly interested in hearing from community members who:
Let's discuss the potential benefits and drawbacks of this approach, and explore whether this would be a valuable addition to Vendure.
Beta Was this translation helpful? Give feedback.
All reactions