W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [WebDatabase] Database interface (vs. DatabaseSync interface)

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 27 Jul 2009 15:32:00 -0600
Cc: Aaron Boodman <aa@google.com>, public-webapps WG <public-webapps@w3.org>
Message-id: <8A52EAA5-45B1-4EA9-8950-748A59B628A7@apple.com>
To: "Nikunj R. Mehta" <nikunj.mehta@oracle.com>

On Jul 27, 2009, at 2:14 PM, Nikunj R. Mehta wrote:

> And mine did get awkward, very quickly. I found it really hard to  
> keep myself sane through the development of asynchronous code that  
> executes transactionally and involves multiple sql statements.
> My argument is that the program logic gets really complex, really  
> fast if you are doing anything complex using Database. On the other  
> hand, if your logic and SQL needs are really simple, you might as  
> well use the DatabaseSync interface and pay the price of marshaling  
> and unmarshaling, which may not be that much.

Aaron showed that it's pretty complex to implement the marshalling in  
a general way on top of Workers and a synchronous interface.

> Alternatively, perhaps, we should consider doing something in  
> WebWorkers to deal with the overhead of sharing JavaScript objects  
> across VMs.

That would lead to far greater complexity for both implementations and  
content authors than the complexity saved by removing the async  

Received on Monday, 27 July 2009 21:32:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 14:36:37 UTC