BaseX native User module
Saturday, 16 May 2015 · 2 messages
ML
Marco Lettere16 May 2015 11:41 #
Hi Christian,
do you have any idea on the performances of the users module that comes with BaseX? Does it work properly with a count of users up to several hundreds? thousands? Any tests done so far?
Thank you.
BR,
Marco.
CG
Christian Grün16 May 2015 12:25 #
Hi Marco,
Quoted text · Marco Lettere · 3 lines
> do you have any idea on the performances of the users module that comes with > BaseX? Does it work properly with a count of users up to several hundreds? > thousands? Any tests done so far?
I don't believe you should run into troubles here. I haven't done any performance tests so far, but the users.xml file will only be parsed once when starting BaseX. Next, all users are stored in a hash map [1], and even with a simple list, it should be fairly quick to browse a list of a few 1000 users. Thirdly, since BaseX 8, we are working with database patterns, so if you have thousands of databases starting e.g. with the string "db", you can grant a single pattern to a users to access all of theses databases with specific permissions.
Well, this is theory.. I'd like to hear more about your practical experiences! Christian
[1] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/core/users/Users.java#L27
Written for BaseX 8.1. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery