View Single Post
Old 09-11-2023, 10:17 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,451
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Because having so many separate db files is unneccessary clutter and putting tables into separate database files has an overhead in terms of query complexity and performance. Since notes supports FTS and can contain potentially large amounts of text it cannot be in metadata.db so it must be separate. Not to mention I like to develop things incrementally and doing that
wit a separate db file is much easier. And then there are considerations of backup, currently the .calnotes folder is complete including main data and backups. If I were to move some tables into metadata.db there becomes a cross dependence.

Splitting it further into a separate fts means you then need to deal with user deleteing only the fts.db and other complications. FTS is optional for the main database not for notes.
kovidgoyal is offline   Reply With Quote