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

Initial support for other schemas #141

Closed
wants to merge 3 commits into from
Closed

Conversation

aokiji
Copy link

@aokiji aokiji commented Mar 20, 2024

As seen in #99 there is lack of support for completion when working with other schemas other than the default schema. So this in the initial effort to fix this issue bringing support for:

  • table completion when given the schema
  • table description for table in any schema
  • column completion when given table in any schema
  • column completion for tables in any schema referenced in the join clause

In this change there is also a performance change proposal for the queries that retrieve schema information. In my database (~3k tables, ~25k columns) the sqls server hunged up in the foreign key query for the primary cache, after the change it starts up almost instantly

Nicolás De los Santos added 3 commits March 20, 2024 22:53
tries to add some support for completion when working with other
schemas.

join snippets are not supported yet as foreign key information
gathered for the other schemas is not updated in the cache as it is
done with the column description

this partially solves issue sqls-server#99
querying information schema views is slow, and more so when joining
multiple of these relations

some of these queries have been changed to query the catalog tables
instead
@aokiji
Copy link
Author

aokiji commented Apr 6, 2024

I'm closing this issue as I rather divide the performance issue and the feature proposal so that is easier to review, the feature proposal is now in #142

@aokiji aokiji closed this Apr 6, 2024
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

Successfully merging this pull request may close these issues.

1 participant