Commit graph

21 commits

Author SHA1 Message Date
Joey Hess
8bde6101e3
sqlite datbase for importfeed
importfeed: Use caching database to avoid needing to list urls on every
run, and avoid using too much memory.

Benchmarking in my podcasts repo, importfeed got 1.42 seconds faster,
and memory use dropped from 203000k to 59408k.

Database.ImportFeed is Database.ContentIdentifier with the serial number
filed off. There is a bit of code duplication I would like to avoid,
particularly recordAnnexBranchTree, and getAnnexBranchTree. But these use
the persistent sqlite tables, so despite the code being the same, they
cannot be factored out.

Since this database includes the contentidentifier metadata, it will be
slightly redundant if a sqlite database is ever added for metadata. I
did consider making such a generic database and using it for this. But,
that would then need importfeed to update both the url database and the
metadata database, which is twice as much work diffing the git-annex
branch trees. Or would entagle updating two databases in a complex way.
So instead it seems better to optimise the database that
importfeed needs, and if the metadata database is used by another command,
use a little more disk space and do a little bit of redundant work to
update it.

Sponsored-by: unqueued on Patreon
2023-10-23 16:46:22 -04:00
Joey Hess
df4a60e28d
update 2023-10-23 14:18:49 -04:00
Joey Hess
424b1912d6
followup and add link 2020-07-01 12:28:44 -04:00
Joey Hess
73c9331b15
remove obsolete links 2020-06-30 13:41:18 -04:00
Edward Betts
0750913136
correct spelling mistakes 2017-02-12 17:30:23 -04:00
Joey Hess
0fdbf639dc
followup; open bug 2016-07-19 15:04:41 -04:00
Joey Hess
5dc7a24680
update 2016-01-12 13:24:31 -04:00
Joey Hess
f8f4577047 plan update 2015-06-12 14:32:18 -04:00
Joey Hess
d2699b6ebe status update 2015-06-12 14:20:21 -04:00
Joey Hess
c258295d35 update with benchmarks for fsck -- sqlite added only 10s 2015-02-22 14:49:05 -04:00
Joey Hess
0ad35db26b update plan 2015-02-16 17:14:13 -04:00
Joey Hess
e79c3fff23 update 2015-02-15 14:29:27 -04:00
Joey Hess
3684e4d551 better results for esquelito 2015-02-15 14:12:38 -04:00
Joey Hess
2fbbb7fab0 reviewed vcache for use by git-annex; found it wanting 2015-02-15 12:37:38 -04:00
Joey Hess
5cba40e7cc update 2014-12-25 17:37:00 -04:00
Joey Hess
07678409c7 link to another place this could be used, perhaps 2014-03-18 15:53:06 -04:00
Joey Hess
21b8461483 link to another item 2014-03-18 15:31:41 -04:00
Joey Hess
05336116a4 implemntation plan 2014-03-13 19:37:41 -04:00
Joey Hess
69a1aaa40f
doubled speed with esqeleto 2014-03-13 11:09:05 -04:00
Joey Hess
3e86d35e84
fixed slow query on normalized table; still 10x slower than current .map files 2014-03-13 09:38:20 -04:00
Joey Hess
46aab35eb0 add 2014-03-12 18:11:35 -04:00