[PATCH] Maintain a metadata copy outside the index (was Re: Datastore & backup - request for help)

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Wed May 21 23:48:29 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jameson "Chema" Quinn wrote:
|>> - at startup, if the file <datastore_path>/.metadata.exported doesn't
|>> exist, check how many objects need to get their metadata exported
|>> (0.8s for 3000 entries)
|> That's pretty good.
|>
|>> - in an idle callback, process each of those objects one per iteration
|>> (3ms per entry with simplejson, 2ms with cjson).
|> Exporting a few 100 per iteration probably is more efficient ;-)
|
|
| This brings up the issue of TamTam imperfect timing - it would be great if
| there were some way to turn off all unnecessary background CPU use for cases
| like TamTam. If so, I'd say 12*3ms is about the right size for a background
| click every second or two.
|

We are free to set nice values for each process as appropriate.  Backup
should obviously get a very high nice value.

- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFINO0MUJT6e6HFtqQRAvYcAKCErMFKVfg5JUforGBvGj2asKosiACfZMWO
fVqQPBmvqsLuJcYjzlIzino=
=3TEt
-----END PGP SIGNATURE-----



More information about the Devel mailing list