Hi Hans-Jürgen,

> it seems to me that function db:open() and collection() are equivalent.
> [...]

the main difference of the collection() and doc() functions is that
they can also access local resources: you may as well use them to
create a temporary main-memory collection from all files found at the
given local file path [1]. In other words, db:open() will be a little
bit more efficient, and cause no surprises, if you know that your
files are stored in a database.

Hope this helps,
Christian

[1] http://docs.basex.org/wiki/Database#XML_Documents
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to