Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple views of the same filtered entity set #479

Open
novoj opened this issue Feb 24, 2024 · 0 comments
Open

Multiple views of the same filtered entity set #479

novoj opened this issue Feb 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@novoj
Copy link
Collaborator

novoj commented Feb 24, 2024

Often the product listing page contains listings in differently sorted forms. The typical example is the "Top Sellers" block, which lists the exact same products as the main listing on the page, but sorts them differently. If we could merge these two listings into a single query that returns two results, we could benefit in two ways:

  1. we wouldn't be forced to declare the same complex set of filtering constraints and requirements in two different queries.
  2. the database engine could reuse the computed result of filtered products to satisfy both queries at once - just applying different sorting and paging requirements.

So we end up with a faster and simpler system for this use case, which is ultimately what we want.

@novoj novoj added the enhancement New feature or request label Feb 24, 2024
@novoj novoj added this to the Alpha milestone Feb 24, 2024
@novoj novoj self-assigned this Feb 24, 2024
@novoj novoj modified the milestones: Alpha, Beta Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant