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

Fetch tables() on demand in the UI and autocomplete #319

Open
7 tasks
insmac opened this issue Jul 30, 2024 · 0 comments
Open
7 tasks

Fetch tables() on demand in the UI and autocomplete #319

insmac opened this issue Jul 30, 2024 · 0 comments

Comments

@insmac
Copy link
Contributor

insmac commented Jul 30, 2024

The current application logic fetches the table list on boot and refreshes the result set in certain situations (i.e. after a DDL type query). This is fine, unless the user has a lot of tables in the database (1000+), in which case the application can become unstable or stop working altogether.

To fix the problem, the tables() query has to be paginated. There is a number of things that have to be done in the application logic:

  • Add method to fetch tables with LIMIT or WHERE filter
  • LIMIT for table listing
  • WHERE for FIlter search bar
  • Refactor Tables UI to paginate table results
  • Refactor Filter search bar to use SQL filter when searching
  • Refactor Create Table to use search on demand when validating if a given table name exists already
  • WHERE for checking table existence in Import CSV
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

1 participant