Hello,
If I use the REST interface to get details of the resources in a database (http://localhost:8984/rest/TEST-DATABASE for example) the result is rest:resource elements that include size.
<rest:resource type="xml" content-type="application/xml" size="46”>
I assumed that db:list-details was the XQuery equivalent but the resource elements it returns do not include size.
<resource raw="false" content-type="application/xml" modified-date="2015-05-31T17:12:32.907Z”>
I’m sure it is staring me in the face but I can’t work out how to get the size value from within XQuery. Can someone point me in the right direction?
I’m trying to do some database pruning based on the size of the documents which would be very easy if I had rest:resource elements.
Many thanks, James