You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by freak182 <em...@gmail.com> on 2009/08/31 15:34:48 UTC

Question about LocalFileSystem and DataStore (File and DB)

Hello,

Please excuse if my question is stupid enough, just want to make clear.
here is my current repository config:

<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
		
</FileSystem>

<Workspace name="${wsp.name}">
		<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
			
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"
/>
 ............

...simple enough and it is working. Now my question is:

1. Do still need a DataSore? what DataStore i use for production?
2. what is the difference between a DataStore and FileSystem?
3. what is the best combination of DataStore and PM for production use? and
for clustering?

side question:
4. How to configure DatabaseFileSystem?

Thanks a lot. cheers.


-- 
View this message in context: http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25223633.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Question about LocalFileSystem and DataStore (File and DB)

Posted by freak182 <em...@gmail.com>.
Hello,

I already figure it out anyway.

Thanks a lot.
Cheers.
 

freak182 wrote:
> 
> Hello,
> 
> Thank you for that. Anyway, i configure my PM to BundleDB:
> 
> <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager">
> 			    
> 			    
> 			    
> 			    
> 			    
> 			    
> 			    
> 			    
> 			    
> 			    
> 		</PersistenceManager>
> 
> but no table/s created in jcrpm db. did i miss something?
> 
> Thanks a lot. Cheers.
> 
> 
> Thomas Müller-2 wrote:
>> 
>> Hi,
>> 
>> Please read here: http://wiki.apache.org/jackrabbit/DataStore
>> 
>> Regards,
>> Thomas
>> 
>> On Mon, Aug 31, 2009 at 4:42 PM, freak182<em...@gmail.com> wrote:
>>>
>>> Hello,
>>>
>>> One thing i notice on FileDataStore even if i perform delete in my
>>> application the files are still there in repository/datastore
>>> directory...does datastore behaves like that, you can only add entry?
>>> never
>>> delete?
>>>
>>>
>>> Alexander Klimetschek wrote:
>>>>
>>>> On Mon, Aug 31, 2009 at 3:34 PM, freak182<em...@gmail.com>
>>>> wrote:
>>>>>                <PersistenceManager
>>>>> class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"
>>>>> />
>>>>
>>>> A database based bundle persistence manager is recommended, as the
>>>> filesystem ones (eg. BundleFsPersistenceManager) are prone to
>>>> inconsistencies as they are not transactional. For embedded scenarios
>>>> without an existing (remote) database, the Derby bundle PM is useful.
>>>>
>>>>> 1. Do still need a DataSore? what DataStore i use for production?
>>>>
>>>> A datastore is optional. See [1] to [3].
>>>>
>>>>> 2. what is the difference between a DataStore and FileSystem?
>>>>
>>>> Also see the links.
>>>>
>>>>> 3. what is the best combination of DataStore and PM for production
>>>>> use?
>>>>> and
>>>>> for clustering?
>>>>
>>>> Bundle database PMs are good, and the FileDataStore is good for
>>>> performance. If you must have everything in the database, a db
>>>> datastore might be better.
>>>>
>>>>> side question:
>>>>> 4. How to configure DatabaseFileSystem?
>>>>
>>>> Configuration of repository.xml elements are described on the
>>>> configuration page [1] and in more detail in the javadocs of the
>>>> class, eg. for the DbFileSystem it's [4].
>>>>
>>>> [1] http://jackrabbit.apache.org/jackrabbit-configuration.html
>>>> [2] http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ
>>>> [3] http://wiki.apache.org/jackrabbit/DataStore
>>>> [4]
>>>> http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/fs/db/DbFileSystem.html
>>>>
>>>> Regards,
>>>> Alex
>>>>
>>>> --
>>>> Alexander Klimetschek
>>>> alexander.klimetschek@day.com
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25224674.html
>>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25225736.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Question about LocalFileSystem and DataStore (File and DB)

Posted by freak182 <em...@gmail.com>.
Hello,

Thank you for that. Anyway, i configure my PM to BundleDB:

<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager">
			    
			    
			    
			    
			    
			    
			    
			    
			    
			    
		</PersistenceManager>

but no table/s created in jcrpm db. did i miss something?

Thanks a lot. Cheers.


Thomas Müller-2 wrote:
> 
> Hi,
> 
> Please read here: http://wiki.apache.org/jackrabbit/DataStore
> 
> Regards,
> Thomas
> 
> On Mon, Aug 31, 2009 at 4:42 PM, freak182<em...@gmail.com> wrote:
>>
>> Hello,
>>
>> One thing i notice on FileDataStore even if i perform delete in my
>> application the files are still there in repository/datastore
>> directory...does datastore behaves like that, you can only add entry?
>> never
>> delete?
>>
>>
>> Alexander Klimetschek wrote:
>>>
>>> On Mon, Aug 31, 2009 at 3:34 PM, freak182<em...@gmail.com> wrote:
>>>>                <PersistenceManager
>>>> class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"
>>>> />
>>>
>>> A database based bundle persistence manager is recommended, as the
>>> filesystem ones (eg. BundleFsPersistenceManager) are prone to
>>> inconsistencies as they are not transactional. For embedded scenarios
>>> without an existing (remote) database, the Derby bundle PM is useful.
>>>
>>>> 1. Do still need a DataSore? what DataStore i use for production?
>>>
>>> A datastore is optional. See [1] to [3].
>>>
>>>> 2. what is the difference between a DataStore and FileSystem?
>>>
>>> Also see the links.
>>>
>>>> 3. what is the best combination of DataStore and PM for production use?
>>>> and
>>>> for clustering?
>>>
>>> Bundle database PMs are good, and the FileDataStore is good for
>>> performance. If you must have everything in the database, a db
>>> datastore might be better.
>>>
>>>> side question:
>>>> 4. How to configure DatabaseFileSystem?
>>>
>>> Configuration of repository.xml elements are described on the
>>> configuration page [1] and in more detail in the javadocs of the
>>> class, eg. for the DbFileSystem it's [4].
>>>
>>> [1] http://jackrabbit.apache.org/jackrabbit-configuration.html
>>> [2] http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ
>>> [3] http://wiki.apache.org/jackrabbit/DataStore
>>> [4]
>>> http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/fs/db/DbFileSystem.html
>>>
>>> Regards,
>>> Alex
>>>
>>> --
>>> Alexander Klimetschek
>>> alexander.klimetschek@day.com
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25224674.html
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25225110.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Question about LocalFileSystem and DataStore (File and DB)

Posted by Thomas Müller <th...@day.com>.
Hi,

Please read here: http://wiki.apache.org/jackrabbit/DataStore

Regards,
Thomas

On Mon, Aug 31, 2009 at 4:42 PM, freak182<em...@gmail.com> wrote:
>
> Hello,
>
> One thing i notice on FileDataStore even if i perform delete in my
> application the files are still there in repository/datastore
> directory...does datastore behaves like that, you can only add entry? never
> delete?
>
>
> Alexander Klimetschek wrote:
>>
>> On Mon, Aug 31, 2009 at 3:34 PM, freak182<em...@gmail.com> wrote:
>>>                <PersistenceManager
>>> class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"
>>> />
>>
>> A database based bundle persistence manager is recommended, as the
>> filesystem ones (eg. BundleFsPersistenceManager) are prone to
>> inconsistencies as they are not transactional. For embedded scenarios
>> without an existing (remote) database, the Derby bundle PM is useful.
>>
>>> 1. Do still need a DataSore? what DataStore i use for production?
>>
>> A datastore is optional. See [1] to [3].
>>
>>> 2. what is the difference between a DataStore and FileSystem?
>>
>> Also see the links.
>>
>>> 3. what is the best combination of DataStore and PM for production use?
>>> and
>>> for clustering?
>>
>> Bundle database PMs are good, and the FileDataStore is good for
>> performance. If you must have everything in the database, a db
>> datastore might be better.
>>
>>> side question:
>>> 4. How to configure DatabaseFileSystem?
>>
>> Configuration of repository.xml elements are described on the
>> configuration page [1] and in more detail in the javadocs of the
>> class, eg. for the DbFileSystem it's [4].
>>
>> [1] http://jackrabbit.apache.org/jackrabbit-configuration.html
>> [2] http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ
>> [3] http://wiki.apache.org/jackrabbit/DataStore
>> [4]
>> http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/fs/db/DbFileSystem.html
>>
>> Regards,
>> Alex
>>
>> --
>> Alexander Klimetschek
>> alexander.klimetschek@day.com
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25224674.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Re: Question about LocalFileSystem and DataStore (File and DB)

Posted by freak182 <em...@gmail.com>.
Hello,

One thing i notice on FileDataStore even if i perform delete in my
application the files are still there in repository/datastore
directory...does datastore behaves like that, you can only add entry? never
delete?


Alexander Klimetschek wrote:
> 
> On Mon, Aug 31, 2009 at 3:34 PM, freak182<em...@gmail.com> wrote:
>>                <PersistenceManager
>> class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"
>> />
> 
> A database based bundle persistence manager is recommended, as the
> filesystem ones (eg. BundleFsPersistenceManager) are prone to
> inconsistencies as they are not transactional. For embedded scenarios
> without an existing (remote) database, the Derby bundle PM is useful.
> 
>> 1. Do still need a DataSore? what DataStore i use for production?
> 
> A datastore is optional. See [1] to [3].
> 
>> 2. what is the difference between a DataStore and FileSystem?
> 
> Also see the links.
> 
>> 3. what is the best combination of DataStore and PM for production use?
>> and
>> for clustering?
> 
> Bundle database PMs are good, and the FileDataStore is good for
> performance. If you must have everything in the database, a db
> datastore might be better.
> 
>> side question:
>> 4. How to configure DatabaseFileSystem?
> 
> Configuration of repository.xml elements are described on the
> configuration page [1] and in more detail in the javadocs of the
> class, eg. for the DbFileSystem it's [4].
> 
> [1] http://jackrabbit.apache.org/jackrabbit-configuration.html
> [2] http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ
> [3] http://wiki.apache.org/jackrabbit/DataStore
> [4]
> http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/fs/db/DbFileSystem.html
> 
> Regards,
> Alex
> 
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Question-about-LocalFileSystem-and-DataStore-%28File-and-DB%29-tp25223633p25224674.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Question about LocalFileSystem and DataStore (File and DB)

Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Aug 31, 2009 at 3:34 PM, freak182<em...@gmail.com> wrote:
>                <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager"
> />

A database based bundle persistence manager is recommended, as the
filesystem ones (eg. BundleFsPersistenceManager) are prone to
inconsistencies as they are not transactional. For embedded scenarios
without an existing (remote) database, the Derby bundle PM is useful.

> 1. Do still need a DataSore? what DataStore i use for production?

A datastore is optional. See [1] to [3].

> 2. what is the difference between a DataStore and FileSystem?

Also see the links.

> 3. what is the best combination of DataStore and PM for production use? and
> for clustering?

Bundle database PMs are good, and the FileDataStore is good for
performance. If you must have everything in the database, a db
datastore might be better.

> side question:
> 4. How to configure DatabaseFileSystem?

Configuration of repository.xml elements are described on the
configuration page [1] and in more detail in the javadocs of the
class, eg. for the DbFileSystem it's [4].

[1] http://jackrabbit.apache.org/jackrabbit-configuration.html
[2] http://wiki.apache.org/jackrabbit/PersistenceManagerFAQ
[3] http://wiki.apache.org/jackrabbit/DataStore
[4] http://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/core/fs/db/DbFileSystem.html

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com