Re: Sneer code, Async I/O and Vanilla-java
"Justin T. Sampson" <[email protected]>
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <CAAshuuFuAjeABNZwprDuHUtALjwTdZhHYXQALNM9UiAE+qM8+w@mail.gmail.com> |
On Wed, Sep 14, 2011 at 7:49 AM, Felipe Cruz <[email protected]> wrote: > Prevayler will be notified when write finishes but it will not block while > this operation is processed. It can process Queries while kernel is writing > on disk. > > It's possible to achive something similar with a separete java thread, but > it'll require a thread-safe Queue (with sync/locking code involved) and > probably will not outperform kernel aio. > This is already what Prevayler does. Queries run just fine while the journal is being written. And transactions are batched together, so a large number of transactions are included in each disk sync, maximizing write throughput. I might believe that you can squeeze more performance out of the writing itself by using newer IO APIs, but it won't be trivial, and it won't fundamentally improve upon the existing concurrency model of Prevayler. Cheers, Justin ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org