You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many functions in the Database, Index and Full-Text modules expect the database name as first argument. Currently, this argument must be a string, but it could be beneficial to relax this and also allow document nodes:
1. Run index queries on main-memory databases
Each main-memory database instance has internal index structures. The indexes could be addressed directly if the document nodes could be passed on to the index functions:
If the name of a database is supplied to a user-defined function that opens this database, and if this function cannot be inlined (e.g. because it’s too complex or recursive), local locking may fail:
However, that will only be an option if the user-defined function contains code that depends on the database names (such as db:text). It would work if the functions were allowed to also take document nodes:
Many functions in the Database, Index and Full-Text modules expect the database name as first argument. Currently, this argument must be a string, but it could be beneficial to relax this and also allow document nodes:
1. Run index queries on main-memory databases
Each main-memory database instance has internal index structures. The indexes could be addressed directly if the document nodes could be passed on to the index functions:
2. Improve locking
If the name of a database is supplied to a user-defined function that opens this database, and if this function cannot be inlined (e.g. because it’s too complex or recursive), local locking may fail:
It’s a good idea then to open the database in advance and pass on the document nodes:
However, that will only be an option if the user-defined function contains code that depends on the database names (such as
db:text
). It would work if the functions were allowed to also take document nodes:The text was updated successfully, but these errors were encountered: