Re: [webstorage] deleting a database

On Thu, 26 Nov 2009, João Eiras wrote:
> > 
> > Deleting all the data in the database (i.e. dropping all the tables) 
> > should be sufficient, no? There's nothing to store if you don't have 
> > any data in the database (in particular, there's no reason to store 
> > the version as far as I can tell -- you can just act as if the user 
> > deleted the database as soon as the database is empty).
> 
> Well, I thought about that already, but that's an optimization that can 
> be done by the user agent. Should a specification suggest low level 
> optimizations?

I don't think so, no.


> Its also needed to delete views. Tables is not enough, and currently I'm 
> not thinking of anything else. So developers need to be educated: drop 
> all tables, drop all views.

Right, they need to delete whatever they added.


> Would be much more simple to just delete the database explicitly

Yes, but is this something that will happen often enough to matter?


> should be straightforward for most implementations given that those also 
> need to support their delete private data functionality.

I have no doubt it would be easy to implement (modulo getting the 
interaction with existing transactions right).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 26 November 2009 01:40:13 UTC