Perhaps one of the experts of Mark Logic would be willing to comment?

Kind regards,
Geert

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Santhosh Raj
> Sent: woensdag 29 april 2009 8:12
> To: General Mark Logic Developer Discussion
> Subject: RE: [MarkLogic Dev General] How to get the size of a 
> particular file in marklogic server - reg.,
> 
> 
> Hi Geert, 
> 
>         Yes, even i thought the same idea, but as you said it 
> has to be done carefully at every update to each document. 
> 
> But if it would have been done by the marklogic server itself 
> by default it will be much better. We already have logged in 
> user name, along with the last modified date why can't 
> marklogic itself can add the last-modified-user also to the 
> Properties of the document. In future release you can 
> consider this point. 
> 
>  Thanks for your reply., 
> 
> Is there any other way to get the size of the file in bytes., 
> 
> Thanks and Regards,
> Santhosh Rajasekaran
> Tata Consultancy Services
> Mailto: [email protected]
> Website: http://www.tcs.com <http://www.tcs.com/> 
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________ 
> 
> 
> 
> Geert Josten <[email protected]> 
> Sent by: [email protected] 
> 
> 04/29/2009 11:25 AM 
> Please respond to
> General Mark Logic Developer Discussion 
> <[email protected]>
> 
> To
> General Mark Logic Developer Discussion 
> <[email protected]> 
> cc
> Subject
> RE: [MarkLogic Dev General] How to get the size of a 
> particular        file        in marklogic server - reg.,
> 
>       
> 
> 
> 
> 
> Hi Santhosh,
> 
> That is a pity. I am afraid you will have to record it 
> yourself. There is the last login option, but that records 
> global access, not per document.
> 
> Recording it yourself is not that difficult though. You can 
> add custom properties to each document, but you will have to 
> do so diligently, to make sure the property is always 
> available and up to date. I don't think it can be automated 
> using triggers either..
> 
> Kind regards,
> Geert
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[email protected] 
> <mailto:[email protected]> ] On Behalf Of 
> > Santhosh Raj
> > Sent: woensdag 29 april 2009 6:50
> > To: General Mark Logic Developer Discussion
> > Subject: RE: [MarkLogic Dev General] How to get the size of a 
> > particular file in marklogic server - reg.,
> > 
> > 
> > Hi Geert, 
> > 
> >         Thnaks for your reply. 
> > 
> >         xdmp:document-properties('/path/to/doc') - This 
> > function by default has only last-modified time, It is not 
> > showing who has modified the document last. I think it is not 
> > stored by marklogic. Is there any way to get the 
> > last-modified user name. 
> > 
> > EG: xdmp:document-properties('test2.xml') 
> > 
> > -->  <prop:properties 
> xmlns:prop="http://marklogic.com/xdmp/property 
> <http://marklogic.com/xdmp/property>  
> > --> <http://marklogic.com/xdmp/property 
> <http://marklogic.com/xdmp/property> > ">
> >   <prop:last-modified>2009-03-27T12:34:22+05:30</prop:last-modified>
> >   </prop:properties> 
> > 
> > 
> > Thnaks & Regards,
> > Santhosh Rajasekaran
> > 
> > 
> > 
> > Geert Josten <[email protected]> 
> > Sent by: [email protected] 
> > 
> > 04/28/2009 08:19 PM 
> > Please respond to
> > General Mark Logic Developer Discussion 
> > <[email protected]>
> > 
> > To
> > General Mark Logic Developer Discussion 
> > <[email protected]> 
> > cc
> > Subject
> > RE: [MarkLogic Dev General] How to get the size of a 
> > particular        file in        marklogic server - reg.,
> > 
> >                  
> > 
> > 
> > 
> > 
> > >         1) How to get the size of a particular file in the
> > > marklogic server.
> > 
> > You could calculate the string-length of the serialized 
> > version of the file, but that will not match the size it 
> > occupies in the MarkLogic database. That can not be calculated.
> > 
> > For the string-length, you could try to do something like: 
> > string-length(xdmp:quote(doc('/path/to/doc')))
> > 
> > >         2) How to get the lastModifiedby , LastModifiedTime
> > > (metadata)and etc.. of a particular file in the Marklogic server.
> > 
> > Lastmodified info should be part of the document-properties:
> > 
> > xdmp:document-properties('/path/to/doc')
> > 
> > Kind regards,
> > Geert
> > 
> > 
> > Drs. G.P.H. Josten
> > Consultant
> > 
> > 
> > http://www.daidalos.nl/ <http://www.daidalos.nl/>  
> <http://www.daidalos.nl/ <http://www.daidalos.nl/> > 
> > Daidalos BV
> > Source of Innovation
> > Hoekeindsehof 1-4
> > 2665 JZ Bleiswijk
> > Tel.: +31 (0) 10 850 1200
> > Fax: +31 (0) 10 850 1199
> > http://www.daidalos.nl/ <http://www.daidalos.nl/>  
> <http://www.daidalos.nl/ <http://www.daidalos.nl/> > 
> > KvK 27164984
> > De informatie - verzonden in of met dit emailbericht - is 
> > afkomstig van Daidalos BV en is uitsluitend bestemd voor de 
> > geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, 
> > verzoeken wij u het te verwijderen. Aan dit bericht kunnen 
> > geen rechten worden ontleend.
> > 
> > 
> > 
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general 
> <http://xqzone.com/mailman/listinfo/general>  
> > <http://xqzone.com/mailman/listinfo/general 
> <http://xqzone.com/mailman/listinfo/general> > 
> > 
> > ForwardSourceID:NT0000AC42     
> > 
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain 
> > confidential or privileged information. If you are 
> > not the intended recipient, any dissemination, use, 
> > review, distribution, printing or copying of the 
> > information contained in this e-mail message 
> > and/or attachments to it are strictly prohibited. If 
> > you have received this communication in error, 
> > please notify us by reply e-mail or telephone and 
> > immediately and permanently delete the message 
> > and any attachments. Thank you
> > 
> > 
> > _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general 
> <http://xqzone.com/mailman/listinfo/general> 
> 
> ForwardSourceID:NT0000AC8E     
> 
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
> 
> _______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to