monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: file-system archaeology


From: Lapo Luchini
Subject: [Monotone-devel] Re: file-system archaeology
Date: Mon, 04 May 2009 19:07:36 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0

address@hidden wrote:
> The page size was probably changed for performance reasons.  However, 
> the large small database phenomenon does seem to interfere with several 
> BestPractices:
> 
> http://monotone.ca/wiki/DifferentDbsForServeAndWork/
> http://monotone.ca/wiki/OneBranchPerDbForServe/

Err... I guess we're talking about a server that serves several hundreds
branches, or I fail to see how an overhead of 304KiB per-DB can be a big
issue...

Also, those 304KB are the overhead of *empty* DBs, as the size for DBs
with many revision is actually smaller with a bigger page size, AFAIR
the optimization was really a win in total file size (which fit better
in caches).

To experiment page_size, a simple shell script can be used, such as:

( echo 'PRAGMA page_size = 1024;' ; echo .dump | sqlite3 old-db ) \
| sqlite3 new-db

-- 
Lapo Luchini - http://lapo.it/

“The best way to predict the future is to implement it.” (David
Heinemeier Hansson)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]