Re: Update with keeping configuration

"Joe Panico" <[email protected]> Thu, 11 Nov 2004 12:43:39 -0000
Newsgroups gmane.comp.web.pixory
Message-ID <[email protected]>


>> directory named ".album".

>Ok. Just curious: any reason why you did not store this in the DB? I
>would assume these properies where mapped with Hibernate.

There are a few reasons for splitting the information between the DB
and per-folder .album/XML files. The big idea is that the most
important information that the user maintains through Pixory is the
album specific information, e.g. narrative, captions, date
assignments, etc. This information is potentially hard or impossible
to recreate, if lost. So Pixory attempts to be a good steward of this
information by making its storage as transparent as possible. In other
words, look, your precious album information does not disappear
somewhere you can't find it, it's sitting right there in the album, in
a text file that anyone can read with any text editor. And, if you
decide to stop using Pixory, you can always pick up your album
information and take it to another application.

Another reason for storing this information in XML files rather than
in the SQL database is "survivability". The idea is that, even though
it's unlikely, a SQL database can crash irrecoverably, whereas an XML
file can't. 

Finally, the album specific information is not inherently relational--
it's more like a document. So I use a document oriented paradigm for
its storage.

>So am I right to assume that I can move the hypersonic files to the
>new user dir and Pixory finds it? (i.e. it always looks under the
>user home dir?

Yes, it should work that way.

>Again just curious: Why not stored in the webapp?

To make upgrades easier-- separate the data from the applications that
operate on it. Then you can simply delete and replace the application
in order to upgrade without upsetting the data.

regards,

joe





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EGnolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/pixory-beta/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/