Hi Anupam,
is it possible to you to rename the documents before adding them? I would propose to suffix the current timestamp and/or look into the system if another resource with the same name already exists and add some suffix. You would have unique names, can query them (don't know if there's a more elegant way then list all resources and filter them using regex or whatever, probably the list could help with this) and FIFO wouldn't be any problem any more.
Kind regards,
Jens
--
Jens Erat
[phone]: tel:+49-151-56961126
[mail]: mailto:email@jenserat.de
[jabber]: xmpp:jabber@jenserat.de
[web]:
http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Am 01.06.2012 um 21:55 schrieb Anupam Bakshi:
> Hello Christian, Dimitar,
>
> Thanks for your replies and helpful suggestions. (BTW, the collections('path')[1] did not work).
>
> The workarounds are not ideal because what I was hoping to implement was a FIFO (first in first out) flow, where documents come in at a different pace than the pace at which they are consumed. The two operations are asynchronous.
>
> I'll try and use the workarounds you suggested. Although it would have been nice to have that feature ( be able to specify the resource that has to be deleted on the same path).
>
> Best regards,
> Anupam
> _______________________________________________
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
>
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk