Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-10 Thread Jeremy Orlow
On Thu, May 6, 2010 at 8:25 PM, ben turner bent.mozi...@gmail.com wrote: Hey folks, I'm working with Shawn on the Firefox implementation. Here's our idea as of now, would you all please comment about things you like or dislike? Hopefully this follows the gist of the comments shared already.

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-06 Thread Nikunj Mehta
On May 4, 2010, at 7:17 PM, Pablo Castro wrote: The interaction between transactions and objects that allow multiple operations is giving us trouble. I need to elaborate a little to explain the problem. You can perform operations in IndexedDB with or without an explicitly started

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-06 Thread Nikunj Mehta
On May 5, 2010, at 1:56 PM, Shawn Wilsher wrote: On 5/5/2010 1:09 PM, Jeremy Orlow wrote: I'd also worry that if creating the transaction were completely transparent to the user that they might not think to close it either. (I'm mainly thinking about copy-and-paste coders here.) I should

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-06 Thread Jeremy Orlow
On Thu, May 6, 2010 at 9:14 AM, Nikunj Mehta nik...@o-micron.com wrote: On May 4, 2010, at 7:17 PM, Pablo Castro wrote: The interaction between transactions and objects that allow multiple operations is giving us trouble. I need to elaborate a little to explain the problem. You can

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-06 Thread ben turner
Hey folks, I'm working with Shawn on the Firefox implementation. Here's our idea as of now, would you all please comment about things you like or dislike? Hopefully this follows the gist of the comments shared already. interface IndexedDatabaseRequest { IDBRequest open(in DOMString name,

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-06 Thread ben turner
Hey folks, I'm working with Shawn on the Firefox implementation. Here's our idea as of now, would you all please comment about things you like or dislike? Hopefully this follows the gist of the comments shared already. interface IndexedDatabaseRequest { IDBRequest open(in DOMString name,

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-05 Thread Shawn Wilsher
On 5/5/2010 11:44 AM, Jeremy Orlow wrote: On the other hand, a lot of even the most basic tasks probably should be done within a transaction. But if the easiest way to do something is to just run it outside of a transaction, I'm guessing a good portion of users (including tutorial websites,

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-05 Thread Jeremy Orlow
On Wed, May 5, 2010 at 8:56 PM, Shawn Wilsher sdwi...@mozilla.com wrote: On 5/5/2010 11:44 AM, Jeremy Orlow wrote: On the other hand, a lot of even the most basic tasks probably should be done within a transaction. But if the easiest way to do something is to just run it outside of a

Re: [IndexedDB] Interaction between transactions and objects that allow multiple operations

2010-05-05 Thread Shawn Wilsher
On 5/5/2010 1:09 PM, Jeremy Orlow wrote: I'd also worry that if creating the transaction were completely transparent to the user that they might not think to close it either. (I'm mainly thinking about copy-and-paste coders here.) I should have been more clear. That statement goes along with