How to check the space occupied by each page?

Hi
is there any script or extension that I can use to see where the biggest documents are (attachments, space, pages, trash, versioning). I’m 33GB in my dump and would like to see where I can start doing a cleanup.

Thanks in advance.

Hello,
I don’t know if any script exist but here a piece of velocity code to check attachments size in a page:

  #foreach($MyAttach in $doc.getAttachmentList())
    #set($TotalSize=$TotalSize + $MyAttach.getFilesize())
  #end

Pascal B

I don’t know any extension which does that yet (but as @Pbas indicated it’s not too hard to write).

One thing you could check before is the Attachment index where you can order attachments by size. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Index%20Application#HAllAttachments.

Thanks, Pascal and Thomas!