TurboDB Engine Documentation

Sessions and Threads

Previous  Top  Next

As of TurboDB version 4 you need to create a session before you can open tables and queries. If you are using a component library however (e.g. TurboDB  for VCL or .NET) session handles are hidden within a database or connection object.

You may create as many sessions as you want, but you should be aware of some consequences in a multi-session application:

Cursors of the same table within different sessions are synchronized on file level. This is much slower than the synchronization of cursors within the same session, which is performed in the memory.
You can use different threads for different sessions, but you should not use different threads on the same session. For performance reasons there is no built-in thread synchronization within the same session.