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

Feature request: better auto-completion #38

Open
getaaron opened this issue Feb 4, 2020 · 2 comments
Open

Feature request: better auto-completion #38

getaaron opened this issue Feb 4, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@getaaron
Copy link
Contributor

getaaron commented Feb 4, 2020

Problems

  • For very large databases, we are experiencing a ~20 sec delay when switching using use
  • Autocompletion only works for 1 database at a time (e.g. doesn't work for cross-database queries)

Possible solutions

  • Fetch auto completions on SELECT database_name.<tab>
  • Get all the autocompletions up-front?
  • Cache when switching databases?
  • Make it configurable?
@zzl0
Copy link
Contributor

zzl0 commented Feb 12, 2020

I am not sure. We can check mycli/pgcli to see if they already support it, if yes, we can just copy the logic to athenacli.

@zzl0 zzl0 added the enhancement New feature or request label May 29, 2020
@littlefattiger
Copy link

@zzl0 This also be an issue for us. We have very large databases on s3, and whenever we use some shcema, the first query will be very slow(>10 mins) because it automatically run the query to get out all the tables and column names to help us auto-complete.

Possible solution:

  1. Distable this auto-complete function to make the first query also fast?
  2. Cached the table name and tables in some place and dont need to run it every time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants