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

Performance issue when issuing queries doctrine-dbal #118

Open
dantleech opened this issue Dec 11, 2014 · 1 comment
Open

Performance issue when issuing queries doctrine-dbal #118

dantleech opened this issue Dec 11, 2014 · 1 comment

Comments

@dantleech
Copy link
Member

When we execute a query doctrine-dbal issues a single corresponding query to the RDBMS.

But then it additionally issues 2 more queries for each row when I iterate over the result set:

2756 Query     SELECT path, parent FROM phpcr_nodes WHERE parent IN ('/cmf/stanton/routes/en/the-region/restaurants/pizzeria-la-luna') AND workspace_name = 'default' ORDER BY sort_order ASC
2756 Query     SELECT * FROM phpcr_nodes
              WHERE path = '/cmf/stanton/routes/en/accommodations/restaurants/traube'
              ORDER BY depth, sort_order ASC

@dbu @lsmith77 any idea why? issue with doctrine-dbal?

@lsmith77
Copy link
Member

No clue, I do not see where a query like the first one is even generated. The second one seems to be a node fetch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants