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

Version db2rest-oracle9i-0.2.7-RC1.jar hangs at Fetching all schema meta data #450

Closed
MichalisDBA opened this issue Apr 8, 2024 · 6 comments
Assignees
Labels
bug Something isn't working fixed-waiting-feedback Issue resolved pending final review.
Milestone

Comments

@MichalisDBA
Copy link

MichalisDBA commented Apr 8, 2024

Hello. In latest version db2rest-oracle9i-0.2.7-RC1.jar if you do not specify the -DINCLUDE_SCHEMAS parameter, the application hangs at Fetching all schema meta data.. This was not happening in previous version.

@thadguidry thadguidry added the bug Something isn't working label Apr 8, 2024
@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 9, 2024

Investigated it - schema has many tables and loads of columns. When no exclusion is applied it scans through all including system tables and columns. Eventually you will see after several minutes it does timeout. Loading column details is slow.

It can be optimized by
a. excluding system tables. For each database product a list will be maintained.
b. column details will be loaded in parallel.

Will make this part of 0.2.8 release in a couple of weeks.

kdhrubo pushed a commit that referenced this issue Apr 10, 2024
kdhrubo added a commit that referenced this issue Apr 10, 2024
@kdhrubo kdhrubo self-assigned this Apr 10, 2024
@kdhrubo kdhrubo added this to the April2024 milestone Apr 10, 2024
@kdhrubo kdhrubo added the fixed-waiting-feedback Issue resolved pending final review. label Apr 10, 2024
@MichalisDBA
Copy link
Author

Latest version 0.2.8 fixed it. Still a bit slow when you have many tables under a schema but it loads fine at the end. Thank you.

@thadguidry
Copy link
Collaborator

@kdhrubo I wonder if the slowness is due to cache building? or problems therein?

@MichalisDBA
Copy link
Author

@thadguidry It took 10 minutes to load a schema with 53 tables and 3905 views.

@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 11, 2024

Yes it's building cache. I will investigate further.

@kdhrubo
Copy link
Collaborator

kdhrubo commented Apr 13, 2024

Closing #460 discussion added for future review.

@kdhrubo kdhrubo closed this as completed Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-waiting-feedback Issue resolved pending final review.
Projects
None yet
Development

No branches or pull requests

3 participants