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

DBAL-1106 DBAL-1106 #768 Improve schema introspection performance on Oracle #1045

Closed
doctrinebot opened this issue Jan 4, 2015 · 4 comments

Comments

@doctrinebot
Copy link

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of deeky666:

Url: #768

Message:

This PR improves the overall schema introspection performance on Oracle by optimizing some of the getList*() method SQL queries in the platform.
Unfortunately Oracle system views are rather slow, especially when joining tables. Using subqueries can improve the execution time a lot.

_Improved queries_

(the times have been measured using an exemplary query from the functional test suite)

getListTableForeignKeysSQL(): Down from <sub>2.33s to </sub>0.68s per query
getListTableColumnsSQL(): Down from <sub>0.49s to </sub>0.14s per query
getListTableIndexesSQL(): Down from <sub>0.5s to </sub>0.25s per query

Overall improvement of OracleSchemaManagerTest from <sub>100s to </sub>37.5s.

I was quite impressed by the performance improvements :)

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-768] was assigned:
#768

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-768] was merged:
#768

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.6 milestone Dec 6, 2015
@Ocramius Ocramius changed the title DBAL-1106: [GH-768] [DBAL-1106] Improve schema introspection performance on Oracle DBAL-1106 DBAL-1106 #768 Improve schema introspection performance on Oracle Jul 22, 2017
@github-actions
Copy link

github-actions bot commented Aug 5, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants