Forum OpenACS CMS: ns_dbi and ns_db together
Posted by Siqsuruq Siqsuruq on 02/15/23 01:03 PM
Hello, I want to ask if it's a good idea to mix ns_dbi and ns_db together in one instance, one server?
2: Re: ns_dbi and ns_db together (response to 1)
Posted by Gustaf Neumann on 02/15/23 06:12 PM
A good idea? no. Possible? yes.
I think mixing these interfaces should work pretty well up to a point, where e.g. nested transaction (some ns_db and some dbi transactions) are used. Not sure about the semantics in such cases.
Note that ns_cache_transaction_rollback is just implemented for the OpenACS nsdb interface (undo cache operations that happened during a transaction).
For heavy OpenACS work, nsdb is recommended.