When to use JCR over DB? Guidelines/Best practices?

This is a discussion on When to use JCR over DB? Guidelines/Best practices? within the Apache forums in Application Servers & Tools category; Hey guys, I'm pretty new to Jackrabbit (or any JCR implementation) and my only CR experience was with a proprietary one years ago not offering so many of the features we have today like queries, transactions, versioning, etc. So I am in the process of designing a web store and I'm finding it difficult to decide what to put in a traditional DB w/ORM versus JCR w/OCM. For example, think of your typical Product: id, name, price, data sheets, marketing PDFs, pictures, searchable meta data, editable CMS type description for display, etc... Looking at this, it screams "just put it ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-09-2008, 06:37 AM
Robert Campbell
Guest
 
Default When to use JCR over DB? Guidelines/Best practices?

Hey guys,

I'm pretty new to Jackrabbit (or any JCR implementation) and my only
CR experience was with a proprietary one years ago not offering so
many of the features we have today like queries, transactions,
versioning, etc.

So I am in the process of designing a web store and I'm finding it
difficult to decide what to put in a traditional DB w/ORM versus JCR
w/OCM. For example, think of your typical Product:

id, name, price, data sheets, marketing PDFs, pictures, searchable
meta data, editable CMS type description for display, etc...

Looking at this, it screams "just put it all in Jackrabbit... " The
only things that would make more sense in a DB I guess are id, name,
and price.. but I can't say why, just feels that way. Why both with
the DB at all and just put everything in Jackrabbit, with Category
nodes, Product nodes, etc?

How do all of you decide which system to use and where? What are the
guidelines you all use?

Thank you,

Rob

Reply With Quote
  #2  
Old 11-10-2008, 04:06 AM
Alexander Klimetschek
Guest
 
Default Re: When to use JCR over DB? Guidelines/Best practices?

Hi!

For some discussion on DB vs. JCR see this recent thread:
http://markmail.org/message/lw4m2cjyykmwwi6o

And our classic content model guide is here:
http://wiki.apache.org/jackrabbit/DavidsModel

These two should give you some start, if you have more questions, just ask them!

Oh, and regarding OCM: my personal opinion is that with JCR you don't
need an OCM framework, since the JCR node interface is already a (very
flexible) DAO.

Regards,
Alex

On Sun, Nov 9, 2008 at 12:37 PM, Robert Campbell <rrc7cz@gmail.com> wrote:
> Hey guys,
>
> I'm pretty new to Jackrabbit (or any JCR implementation) and my only
> CR experience was with a proprietary one years ago not offering so
> many of the features we have today like queries, transactions,
> versioning, etc.
>
> So I am in the process of designing a web store and I'm finding it
> difficult to decide what to put in a traditional DB w/ORM versus JCR
> w/OCM. For example, think of your typical Product:
>
> id, name, price, data sheets, marketing PDFs, pictures, searchable
> meta data, editable CMS type description for display, etc...
>
> Looking at this, it screams "just put it all in Jackrabbit... " The
> only things that would make more sense in a DB I guess are id, name,
> and price.. but I can't say why, just feels that way. Why both with
> the DB at all and just put everything in Jackrabbit, with Category
> nodes, Product nodes, etc?
>
> How do all of you decide which system to use and where? What are the
> guidelines you all use?
>
> Thank you,
>
> Rob
>




--
Alexander Klimetschek
alexander.klimetschek@day.com

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.