W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: [webstorage] deleting a database

From: João Eiras <joaoe@opera.com>
Date: Thu, 26 Nov 2009 02:25:32 +0100
To: "Ian Hickson" <ian@hixie.ch>
Cc: public-webapps@w3.org
Message-ID: <op.u3y98ukx2q99of@coruscant>

> 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 ?
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.

Would be much more simple to just delete the database explicitly, and  
should be straightforward for most implementations given that those also  
need to support their delete private data functionality.
Received on Thursday, 26 November 2009 01:26:21 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:21 UTC