Showing posts with the label indexing

[FIXED] How to create index for a SQLite3 database using SQLAlchemy?

Issue I have multiple SQLite3 databases for which the models are not available. def index_db(name,…

[FIXED] Very slow queries in a large database even with indexes

Issue I have a large database with login and level columns. All queries were slow before I create…

[FIXED] What is the execution order of conditions in a query with an indexed column?

Issue In SQL, when a query is filtered by multiple conditions, a simple optimization is to list mor…

[FIXED] Index when using is null in query not working

Issue I have the following index: CREATE INDEX IF NOT EXISTS dateIdx ON table1 (DateFirstAdded COL…

[FIXED] Nested WHILE loop in SQL runs the inner loop, but does not run the outer loop

Issue I create a procedure to consolidate all info calculated per each X & Y value combinatio…

[FIXED] when were index statistics last updated?

Issue Is there a quick and easy way to list when every index in the database last had their statist…

[FIXED] PostgreSQL LIKE query performance variations

Issue I have been seeing quite a large variation in response times regarding LIKE queries to a par…

[FIXED] Order varchar string as numeric

Issue Is it possible to order result rows by a varchar column cast to integer in Postgres 8.3?���…

[FIXED] Django: create Index: non-unique, multiple column

Issue Given the following model, I want to index the fields (sequence,stock) class QuoteModel(mod…