W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: Persistent Storage vs. Database

From: Kyle Huey <me@kylehuey.com>
Date: Thu, 7 Mar 2013 22:36:40 -0800
Message-ID: <CAP045ArTK3eCsFCU2KZff7M51RqCQqafKbLz3aYPOf4o8AL-DA@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: public-webapps <public-webapps@w3.org>
On Thu, Mar 7, 2013 at 10:20 PM, Andrew Fedoniouk <news@terrainformatica.com
> wrote:

> Physical commit (write) of objects to storage happens on either
> a) GC cycle or b) on explicit storage.commit() call or on c) VM shutdown.
>

Persisting data off a GC cycle (via finalizers or something else) is a
pretty well known antipattern.[0]

At least it is easier than http://www.w3.org/TR/IndexedDB/ :)


Easier doesn't necessarily mean better.  LocalStorage is certainly easier
to use than any async storage system ;-)

 - Kyle

[0] e.g.
http://blogs.msdn.com/b/oldnewthing/archive/2010/08/09/10047586.aspx
Received on Friday, 8 March 2013 06:37:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:58 GMT