Atlassian JIRA   History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: XRP-53
Type: Bug Bug
Status: Resolved Resolved
Resolution: Applied
Priority: Minor Minor
Assignee: Marc Portier
Reporter: Bill Bruyn
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
xReporter

Shrinking chunk size

Created: 02/May/05 12:17 PM   Updated: 04/May/05 12:06 PM
Component/s: xReporter-Cocoon
Affects Version/s: None
Fix Version/s: 1.3


 Description   
Iterations through resultset 'chunks' yield increasingly smaller sized chunks. e.g., in a resultset with 80 records, chunk size = 50

Navigate forward:

/reports/a_6406/output?chunkOffset=51&chunkLength=50

Navigate backward:

/reports/a_6406/output?chunkOffset=21&chunkLength=30
  /reports/a_6406/output?chunkOffset=-9&chunkLength=30

Navigate forward:
  
/reports/a_6406/output?chunkOffset=31&chunkLength=30
  /reports/a_6406/output?chunkOffset=61&chunkLength=30

Back:

/reports/a_6406/output?chunkOffset=21&chunkLength=20

and so on



 All   Comments   Change History      Sort Order:
Comment by Marc Portier [03/May/05 03:06 AM]

Comment by Bill Bruyn [03/May/05 02:23 PM]
I remembered that too, so I looked it up: http://lists.cocoondev.org/pipermail/xreporter/2004-May/001417.html

Looks like the chunkLength parameter should just be left off altogether, no?


> -----Original Message-----
> From: xreporter-bounces@lists.cocoondev.org
> [mailto:xreporter-bounces@lists.cocoondev.org] On Behalf Of
> Marc Portier
> Sent: Monday, May 02, 2005 11:53 PM
> To: webbased db reporting - general mailinglist
> Subject: Re: [xreporter] Possible problem in chunk navigation
>
>
> can you point us to that message?
> -marc=
>
> bpire.cs@clearstream.com wrote:
> >
> > This is also the change that I did. But I remember reading in
> > previous post of the mailing list the possibility to have the
> > chunk-size fixed in a parameter in the cocoon.xconf.
> >
> > Is it really the case? If yes, why isn't it used here?
> >
> > Bernard
> >

Comment by Marc Portier [04/May/05 05:21 AM]
Hm, I see the chunkLength URL hacking as a useful feature.

I see the need for the action (cocoon sitemap config) to decide for a default chunklength, and providing that to the xreporter backend.

I think the latter should just send-back that info (verbatim) in the chunkinfo section (now it only communicates the actual size of the current chunk, which for the last chunk is always going to be smaller)

That way the stylesheet doesn't need the hardcoded chunksize, nor will it confuse the number-of-rows-in-current-chunk with the chunkLength.

Comment by Marc Portier [04/May/05 06:18 AM]
Fixed by adding an extra parameter "chunk-length" that doesn't shrink.
And updated the stylesheet to use that in stead.

commit-fix: svn rev 642 @ http://svn.cocoondev.org/viewsvn?view=rev&rev=642&root=xreporter

Comment by Bill Bruyn [04/May/05 12:06 PM]
Changing resolution to 'Applied'