Closed tibramo closed 9 months ago
@timo-brandes Thanks for reporting this, and testing the improved query. I have fixed the code in SchemaCrawler, and will release it with the next release.
@sualeh Thank you for updating the query and your hard work on this project.
@timo-brandes Please use SchemaCrawler v16.20.6, and let me know if it helps.
@sualeh Thanks for the release, it is working – and fast :)
@timo-brandes Thanks for the confirmation, and thanks for your query!
Feature Request
Problem Description
The current SQL statement for retrieving all foreign keys in Oracle, as provided in FOREIGN_KEYS.sql, may lead to performance issues and errors in certain scenarios. For instance, in our database, the current implementation resulted in an "ORA-01652: unable to extend temp segment" error after more than 40 minutes of execution time.
Proposed Solution
I propose optimizing the existing SQL statement using explicit JOIN statements. Below is a modified version of the SQL statement that significantly improves performance, reducing the execution time to 4 seconds in our testing environment:
Possible Alternatives
No response
Additional Context
No response