We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current smart content filter queries can be very slow because of usage of distinct:
distinct
With Distinct and Join 1.37s:
1.37s
SELECT DISTINCT k0_.id AS id_0, k1_.workflowPublished as workflow_published_1 FROM kgr_recipes k0_ INNER JOIN kgr_recipe_dimension_contents k1_ ON k0_.id = k1_.recipeId INNER JOIN kgr_recipe_dimension_content_excerpt_categories k3_ ON k3_.recipe_dimension_content_id = k1_.id WHERE k1_.stage = 'live' AND k1_.locale = 'de' AND k3_.category_id IN (165, 144) -- AND ( -- SELECT k3_.category_id FROM kgr_recipe_dimension_content_excerpt_categories k3_ -- WHERE k3_.recipe_dimension_content_id = k1_.id AND k3_.category_id IN (165, 144) -- LIMIT 1 -- ) != 0 ORDER BY k1_.workflowPublished DESC LIMIT 33
Without Join and without distinct 83ms:
83ms
SELECT k0_.id AS id_0, k1_.workflowPublished as workflow_published_1 FROM kgr_recipes k0_ INNER JOIN kgr_recipe_dimension_contents k1_ ON k0_.id = k1_.recipeId -- INNER JOIN kgr_recipe_dimension_content_excerpt_categories k3_ ON k3_.recipe_dimension_content_id = k1_.id -- AND k3_.category_id IN (165, 144) WHERE k1_.stage = 'live' AND k1_.locale = 'de' -- AND k3_.category_id IN (165, 144) AND ( SELECT k3_.category_id FROM kgr_recipe_dimension_content_excerpt_categories k3_ WHERE k3_.recipe_dimension_content_id = k1_.id AND k3_.category_id IN (165, 144) LIMIT 1 ) != 0 ORDER BY k1_.workflowPublished DESC LIMIT 33
This impacts:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current smart content filter queries can be very slow because of usage of
distinct
:With Distinct and Join
1.37s
:Without Join and without distinct
83ms
:This impacts:
The text was updated successfully, but these errors were encountered: