Comments (4)
Hi @RRikor,
how big is your database? 10212 is the number of results that are being mapped, that's why you see 10212 entries in there.
I agree it's big and it should be optimized.
Can you tell me if you just type the .
or you type something before it?
For example, do you get lag when you type something like this:
select * from posts.
Or you just type the dot and get the lag?
.
from vim-dadbod-completion.
Hi @kristijanhusak,
Thank you for the quick reply! And thanks for the tip! The lag was happening when I pressed the dot and when I pressed the schemaname+dot. In both occasions.
I am writing tables for a new schema in a PostgreSQL database. The schema is currently empty. So I guess if
the plugin can't find the schema, or when the schema is empty, it loads all results from pg_tables.tablename + some other pg_ tables into the list?
I created a dummy table in the schema and now it only displays that dummy table when using schemaname+dot. So the lag is gone :-)
Though it would be nice if it would limit the results in the list somehow. Apparently the maximum number of columns in PostgreSQL is 1600. https://www.postgresql.org/docs/current/limits.html
Thanks for the help!
Edit: It also still happens when giving the table an alias, for example:
select t1.*, t2.* from bla.table1 as t1 inner join bla.tabl2 as t2 on t1. <---- lag occuring
So that limit would be a nice addition.
from vim-dadbod-completion.
@RRikor I introduced a limitation for each source returned to 50. If you pull latest master, it should be working better for you.
If you want to configure limits follow the docs
Let me know if it's better.
from vim-dadbod-completion.
Perfect! Thanks very much for the quick fix!
from vim-dadbod-completion.
Related Issues (20)
- "Error executing lua" after updating plugin with support for cmp HOT 2
- Completion options when using schema.table aliases lists non-existent columns - pgsql + nvim-cmp HOT 6
- Customize menu for nvim-cmp source display HOT 3
- nvim-cmp source name "vim-dadbod-completion" causes error when trying to set the source name. HOT 1
- How to set this with cmp and lua based config? HOT 6
- Completion from multiple databases HOT 4
- Completion wont work on local sql files HOT 3
- Support for coq.nvim HOT 1
- Caching Behavior Preventing Completion of New Tables HOT 2
- autocompletion with nvim-cmp now emits E730: using List as a String HOT 5
- Formatter like coc-sql HOT 1
- add support for mongo completion HOT 1
- Completions getting inserted wrapped in "" HOT 2
- Suggestions of tables work, suggestions of columns do not. HOT 1
- suggestions for columns fetched but not being suggested HOT 7
- Deprecated HOT 8
- nvim-cmp stops working when having vim-dadbod-completion installed HOT 10
- Prefer DB specific recommendations HOT 1
- Option to not echom "Connecting to db..." HOT 3
- Autocompletion Issue in Large MSSQL Databases HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-dadbod-completion.