You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Euan Green <eu...@code9.co.uk> on 2009/06/24 16:51:18 UTC
reading from repository quickly
Hi,
What is the best/quickest way to display items from the repository on a web
page?
I have an app that needs to display approx 250 items (using a list of
UUID's) from a repository containing 10000 items. At the moment we display
the list by locatingthe item in the repository by the UUID, then reading the
item info into java by way of an xml stream. Then we use the details to
populate a jsp. The whole process for displaying approx 250 items seems very
long. The only way we can speed things up is to use our own cache. I was
wondering if there is a better more effeicent way of querying jackrabbit for
specific uuids and getting that info displayed on a web page?
Many thanks
Euan
Re: reading from repository quickly
Posted by euangreen <eu...@gmail.com>.
I wipe my database and repository when changing Persistence Managers, but
still have lock problems when using BundleBDPersistenceManager. I''ll do
more reading and will prob figure that out.
I'm going to look into using getNode/Property isntead of getting the whole
object into XML .
Thanks for the help
Euan
Marcel Reutegger wrote:
>
> On Thu, Jun 25, 2009 at 15:39, euangreen<eu...@gmail.com> wrote:
>> I'm trying various combinations of PersistenceManager , but have had no
>> luck
>> getting them to actually run. I keep getting a file lock error when
>> trying
>> to change from SimpleDBPersistenceManager to BundleDbPersistenceManager.
>> But
>> will persevere and look into changing the cache size to see if it makes a
>> difference.
>
> you cannot just switch the persistence manager configuration when you
> have existing data. the different implementations use different ways
> how they store content e.g. in a database. make sure you start with a
> fresh tables when you switch the persistence manager.
>
>> I'm using Session.exportDocumentView() to read the information from
>> repository into an xml object then into an object in the java app. This
>> certainly seems from profiling where the main problem is.
>>
>> I'm trying to speed this up but not sure how basically
>>
>> Any ideas?
>
> that's certainly not the most performant way. you should rather use
> the various getNode/Property() methods and get the desired content
> directly.
>
> regards
> marcel
>
>
--
View this message in context: http://www.nabble.com/reading-from-repository-quickly-tp24199279p24204517.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.
Re: reading from repository quickly
Posted by Marcel Reutegger <ma...@gmx.net>.
On Thu, Jun 25, 2009 at 15:39, euangreen<eu...@gmail.com> wrote:
> I'm trying various combinations of PersistenceManager , but have had no luck
> getting them to actually run. I keep getting a file lock error when trying
> to change from SimpleDBPersistenceManager to BundleDbPersistenceManager. But
> will persevere and look into changing the cache size to see if it makes a
> difference.
you cannot just switch the persistence manager configuration when you
have existing data. the different implementations use different ways
how they store content e.g. in a database. make sure you start with a
fresh tables when you switch the persistence manager.
> I'm using Session.exportDocumentView() to read the information from
> repository into an xml object then into an object in the java app. This
> certainly seems from profiling where the main problem is.
>
> I'm trying to speed this up but not sure how basically
>
> Any ideas?
that's certainly not the most performant way. you should rather use
the various getNode/Property() methods and get the desired content
directly.
regards
marcel
Re: reading from repository quickly
Posted by euangreen <eu...@gmail.com>.
Hi,
I'm trying various combinations of PersistenceManager , but have had no luck
getting them to actually run. I keep getting a file lock error when trying
to change from SimpleDBPersistenceManager to BundleDbPersistenceManager. But
will persevere and look into changing the cache size to see if it makes a
difference.
I'm using Session.exportDocumentView() to read the information from
repository into an xml object then into an object in the java app. This
certainly seems from profiling where the main problem is.
I'm trying to speed this up but not sure how basically
Any ideas?
Euan
Marcel Reutegger wrote:
>
> I'd say increase the bundleCacheSize in the persistence manager
> configuration section of your workspace.xml and soon the reads from
> the repository will be served entirely from cache.
>
> are you sure the repository is the bottleneck? Do you have profiling
> data? XML transformations are usually also expensive.
>
> speaking of XML, what exactly do you mean, when you say:
>
>> reading the item info into java by way of an xml stream.
>
> is that a Session.exportDocument/SystemView()?
>
> regards
> marcel
>
> On Wed, Jun 24, 2009 at 16:51, Euan Green<eu...@code9.co.uk> wrote:
>> Hi,
>>
>> What is the best/quickest way to display items from the repository on a
>> web
>> page?
>> I have an app that needs to display approx 250 items (using a list of
>> UUID's) from a repository containing 10000 items. At the moment we
>> display
>> the list by locatingthe item in the repository by the UUID, then reading
>> the
>> item info into java by way of an xml stream. Then we use the details to
>> populate a jsp. The whole process for displaying approx 250 items seems
>> very
>> long. The only way we can speed things up is to use our own cache. I was
>> wondering if there is a better more effeicent way of querying jackrabbit
>> for
>> specific uuids and getting that info displayed on a web page?
>>
>> Many thanks
>>
>> Euan
>>
>
>
--
View this message in context: http://www.nabble.com/reading-from-repository-quickly-tp24199279p24203457.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.
Re: reading from repository quickly
Posted by Marcel Reutegger <ma...@gmx.net>.
I'd say increase the bundleCacheSize in the persistence manager
configuration section of your workspace.xml and soon the reads from
the repository will be served entirely from cache.
are you sure the repository is the bottleneck? Do you have profiling
data? XML transformations are usually also expensive.
speaking of XML, what exactly do you mean, when you say:
> reading the item info into java by way of an xml stream.
is that a Session.exportDocument/SystemView()?
regards
marcel
On Wed, Jun 24, 2009 at 16:51, Euan Green<eu...@code9.co.uk> wrote:
> Hi,
>
> What is the best/quickest way to display items from the repository on a web
> page?
> I have an app that needs to display approx 250 items (using a list of
> UUID's) from a repository containing 10000 items. At the moment we display
> the list by locatingthe item in the repository by the UUID, then reading the
> item info into java by way of an xml stream. Then we use the details to
> populate a jsp. The whole process for displaying approx 250 items seems very
> long. The only way we can speed things up is to use our own cache. I was
> wondering if there is a better more effeicent way of querying jackrabbit for
> specific uuids and getting that info displayed on a web page?
>
> Many thanks
>
> Euan
>