jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Breuer" <Holger.Bre...@handelshof.de>
Subject Bytes stored twice - in Datastore and Blob-Store
Date Fri, 06 Feb 2009 07:38:18 GMT
Hi,
 
I want to use Datastore instead of Blob-Store in a new project.
I put the tag in repository.xml as follows. I'm using the default
workspace:
 
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
      <param name="driver" value="javax.naming.InitialContext" />
      <param name="url" value="java:HMGJcrDS" />
      <param name="schemaObjectPrefix" value="repo_" />
      <param name="schema" value="mysql" />
    </FileSystem>
 
    <!--
        security configuration
    -->
    <Security appName="Jackrabbit">
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager">
            <!-- <param name="config" value="${rep.home}/access.xml"/>
-->
        </AccessManager>
    </Security>
 
    <!--
        location of workspaces root directory and name of default
workspace
    -->
    <Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default"/>
   
    <!--
        workspace configuration template:
        used to create the initial workspace if there's no workspace
yet
    -->
    <Workspace name="${wsp.name}">
        <FileSystem
class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
          <param name="driver" value="javax.naming.InitialContext" />
          <param name="url" value="java:HMGJcrDS" />
          <param name="schemaObjectPrefix" value="${wsp.name}_" />
          <param name="schema" value="mysql" />
        </FileSystem>        
        
        <!-- PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"
-->
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager">
          <param name="driver" value="javax.naming.InitialContext" />
          <param name="url" value="java:HMGJcrDS" />
          <param name="schemaObjectPrefix" value="${wsp.name}_" />
          <param name="schema" value="mysql" />
          <param name="externalBLOBs" value="false"/>
        </PersistenceManager>

        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
        </SearchIndex>     
    </Workspace>
 
    
    <!--
        Configures the versioning
    -->
    <Versioning rootPath="${rep.home}/version">
        <FileSystem
class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
          <param name="driver" value="javax.naming.InitialContext" />
          <param name="url" value="java:HMGJcrDS" />
          <param name="schemaObjectPrefix" value="version_" />
          <param name="schema" value="mysql" />          
        </FileSystem>
        
        <!-- PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"
-->
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager">
          <param name="driver" value="javax.naming.InitialContext" />
          <param name="url" value="java:HMGJcrDS" />
          <param name="schemaObjectPrefix" value="version_" />
          <param name="schema" value="mysql" />
          <param name="externalBLOBs" value="false"/>
        </PersistenceManager>        
    </Versioning>
        
    <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
      <param name="driver" value="javax.naming.InitialContext" />
      <param name="url" value="java:HMGJcrDS" />
      <param name="databaseType" value="mysql" />
      <param name="minRecordLength" value="1024"/>
      <param name="maxConnections" value="3"/>
      <param name="copyWhenReading" value="true"/>
    </DataStore>    
</Repository>
 
The tables in the MySQL-DB are created successfully. But instead of
storing files
only in the table "datastore" the same amount of bytes are additionally
stored
in the old "default_binval" table, which is also created.
 
What's wrong with the configuration file? Why is the same amount of
bytes stored twice?
In my opini
on the datastore should replace the Blob-Store.
 
Thx
Holger Breuer

---
Handelshof Management GmbH
Viktoriastr.26 • 51149 Koeln (Germany)
Amtsgericht Koeln HRB 2078 
Ust.-ID-Nr. DE 123064252
Sitz der Gesellschaft: Koeln
Geschaeftsfuehrer: 
Dipl.-Betriebsw. (BA) Wolfgang Baer (MBA) (Sprecher) 
Dipl.-Kfm. Kai Patrick Merleker, 
Dr. Wilhelm von Moers 
http://www.handelshof.de
---

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message