Hi, Danny Milosavljevic skribis: > On Sun, 11 Nov 2018 18:06:00 +0100 > ludo@gnu.org (Ludovic Courtès) wrote: > >> I don’t really know what additional index to create (and I’d rather let >> SQLite do it for me, if it were possible). > > Not exactly what you mean but there's this: > > https://www.sqlite.org/lang_analyze.html > > It does statistical analysis of queries that ran and will optimize for > that case on subsequent connections. That’s close to what I was hoping for. We could do “PRAGMA optimize” before closing the database session as they suggest: