> I don't understand the ADD/db:add behaviour when adding two documents with
> the same name :
> previous document is not replaced, but copied, and I did not find a way to
> correct, and delete only one of the documents, because they all have the
> same name...

Currently, to optimize performance, ADD does not check if a document
already exists in the document.

> So, thanks to the db:replace function, I wrote a updating function which
> emulates desired behaviour (that adds or replaces the document if it already
> exists in the database).

Have you already tried the REPLACE command?

> Are db:XXX functions really 'updating' ?
> Is there a way to delete only one of the duplicated documents ?

If you want to update single documents, you should ensure that all
documents have distinct names. This may either be enforced by using
REPLACE, or by yourself..

Christian
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to