You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Saleck, Krister" <Kr...@Dresdner-Bank.com> on 2001/03/26 16:57:24 UTC

numerous retrieveObject() calls

Hi,

I'm writing my diploma exam about WebDAV and CMS and
want to implement a slide-store to demonstrate the
possibilities of WebDAV for an universal client-access to
existing Content Management Systems.
But I'm still not familiar with the store-layer of slide.
So I have logged some method-calls to follow the low-level
calls.

Why does a simple PROPFIND like the following trigger
that amount of redundant(?) retrieveObject() calls?
Should I look at some other abstraction-layers to
understand the integration of the stores?

Thanks,
Krister




Tested with:
MemoryDescriptorsStore and FileContentStore
of nightly build 03-25

=========
PROPFIND /slide/files/ HTTP/1.1
Host: dav:8080
Connection: Keep-Alive, TE
TE: trailers, deflate, gzip, compress
User-Agent: UCI DAV Explorer/0.71 RPT-HTTPClient/0.3-2E
Depth: 1
Authorization: Basic cm9vdDpyb290
Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
Content-type: text/xml
Content-length: 267

<?xml version="1.0"?>
<A:propfind xmlns:A="DAV:">
    <A:prop>
        <A:displayname/>
        <A:resourcetype/>
        <A:getcontenttype/>
        <A:getcontentlength/>
        <A:getlastmodified/>
        <A:lockdiscovery/>
    </A:prop>
</A:propfind>
=========

The following calls were logged (retrieveObject() with
uri-prefix "/files" only):

===========
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files
retrieveObject():/files/dir1
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir2
retrieveObject():/files/dir2
retrieveObject():/files
retrieveObject():/files/dir2
retrieveObject():/files/dir2
retrieveObject():/files
retrieveObject():/files/dir2
retrieveObject():/files
retrieveObject():/files/dir2
retrieveObject():/files/dir2
retrieveObject():/files/dir2
retrieveObject():/files/dir2
retrieveObject():/files
retrieveObject():/files/dir2
retrieveObject():/files
retrieveObject():/files/dir2
retrieveObject():/files/dir2
retrieveObject():/files/dir1
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir1
retrieveObject():/files/dir1
retrieveObject():/files/dir1
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir1
retrieveObject():/files/dir1
retrieveObject():/files/dir1/dir11
retrieveObject():/files/dir1/dir11
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir1/dir12
retrieveObject():/files/dir1/dir12
retrieveObject():/files/dir1
retrieveObject():/files
retrieveObject():/files/dir1/dir13
retrieveObject():/files/dir1/dir13
retrieveObject():/files/dir1
retrieveObject():/files
===========

Re: numerous retrieveObject() calls

Posted by Remy Maucherat <re...@apache.org>.
> Hi,
>
> I'm writing my diploma exam about WebDAV and CMS and
> want to implement a slide-store to demonstrate the
> possibilities of WebDAV for an universal client-access to
> existing Content Management Systems.
> But I'm still not familiar with the store-layer of slide.
> So I have logged some method-calls to follow the low-level
> calls.
>
> Why does a simple PROPFIND like the following trigger
> that amount of redundant(?) retrieveObject() calls?
> Should I look at some other abstraction-layers to
> understand the integration of the stores?

The store ultimately gets so many calls because it's not cached (since it's
a memory store). There is a flag somewhere which triggers that.
Don't worry, the JDBC store doesn't get hammered like that ;)

Using Slide, the application is not trusted, so that's why so many reads
from the internal repositories are occurring. That number could probably
easily be reduced (that's definitely not something I tried to optimize yet),
but first, I just wanted to make sure the thing was secure.

Remy