lkml.org 
[lkml]   [2012]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [sqlite] light weight write barriers
    On Thu 2012-10-25 14:29:48, Theodore Ts'o wrote:
    > On Thu, Oct 25, 2012 at 11:03:13AM -0700, david@lang.hm wrote:
    > > I agree, this is why I'm trying to figure out the recommended way to
    > > do this without needing to do full commits.
    > >
    > > Since in most cases it's acceptable to loose the last few chunks
    > > written, if we had some way of specifying ordering, without having
    > > to specify "write this NOW", the solution would be pretty obvious.
    >
    > Well, using data journalling with ext3/4 may do what you want. If you
    > don't do any fsync, the changes will get written every 5 seconds when
    > the automatic journal sync happens (and sub-4k writes will also get

    Hmm. But that would need setting journalling mode per-file, no?

    Like, make it journal data for all the databases, but keep normal mode
    for rest of system...

    Pavel
    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2012-11-05 21:42    [W:3.156 / U:1.648 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site