W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2007

[whatwg] Asynchronous database API feedback

From: Oliver Hunt <oliver@apple.com>
Date: Mon, 10 Dec 2007 12:38:24 -0800
Message-ID: <475DA3C0.1070300@apple.com>

On 10/12/2007, at 12:21 PM, Geoffrey Garen wrote:
>> If we cannot provide this, I feel that localstorage will not be 
>> successful, so it won't matter what API it uses.
>
> I think this is a pretty extreme conclusion. My impression is that web 
> developers want local storage so badly, they'll use whatever API we 
> give them -- even if it's in Haskell :) .

Hey don't knock Haskell ;)

More seriously though, making assumptions about IO performance is never 
a good idea -- what happens if the IO is to a low budget/resource device 
-- say a handheld or something that uses sdcard storage (which iirc have 
slow IO) -- or any form of external storage for that matter?  These are 
devices that tend to be low power high latency, typically they are slow 
to begin with, if you then start putting even slower *blocking* 
behaviour it could render any site using the API unusable on such a device.

Also making the assumption that local storage will always be local is 
flawed as that assumes that no one uses roaming profiles -- if you were 
to require that local storage always use a local device, you are 
effectively meaning many corporate users would be unable to use websites 
that make use of the API, or even worse occasionally the site will work, 
and occasionally it won't, and sometimes it won't have all your data..

--Oliver
Received on Monday, 10 December 2007 12:38:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:59 UTC