The SessionBase type exposes the following members.
Allow adding objects to indices to be done in a worker thread instead of in main thread.
SessionNoServer ignores DatabaseLocation host value, it assumes localhost, ServerSessionClient does not assume local host, it follows the DatabaseLocation HostName value.
If specified boot path (system database path) in session constructor isn't an absolute path then this base path is prefixed to make an absolute path.
Default batch size for BTree AddFast api, initially set to 100
By default we clear all cached object when at the beginning of a transaction we detect an updated Database within our cached databases. Same logic is applied when calling ForceDatabaseCacheValidation. We do so because most of the time an object in one database have (strong) references to objects in other databases. If Database A is NOT updated but database B is and an object in database A is cached with a strong reference to an object in database B then our cached object in database A may contain a stale/incorrect reference to object in database B. This is why we, by default, invalidate all cached objects when we detect a modified database within our cached databases. However, if you design your database schema without strong references between databases then you do not need to invalidate cached objects for other databases, only the ones that have changed. By consistently using WeakIOptimizedPersistableReferenceT, BTreeSetKey and BTreeMapKey, Value, you can keep references weak between databases. In such cases, set this property to false.
Gets the client page cache object
Gets the DatabaseLocationsDatabaseLocations for the session.
Gets a list of the currently opened databases
By default false, set to true if you want to change the default for newly created DatabaseLocation.
Default number of objects per page is 9999
Set the StringComparer to use when no application provided comparator is provided. By default we will then use StringComparer.Ordinal.
By default do not use windows authentication when talking to VelocitydbServer's on other hosts.
Starting in version 7.1.6, ListT bits are NOT by default stored with its parent object, instead each such ListT is stored with its own object Id. This change was necessary in order to handle circular references via ListT objects within an ISerializable serialization. Set this value to true if you have existing persisted ISerializable with ListT or else we will try to read the lists as non embedded when they are not.
Pages may be flushed when memory available is low unless you set tis property to false. You would want it to be enabled unless you are trying to share a non SessionNoServerShared session by working on different databases in multiple threads. As in Wikipedia sample application.
Enable database and page change tracking. Turn off within an update transaction so that prior change set can be deleted.
When transferring complete files from a server, we send the file bytes in chunks of this size.
Indicates if we are within a transaction commit.
Gets information about this session, is it an in-memory only session or a session that persists data
Indicates if we are within an active transaction.
Indicates if we are within an active update transaction.
Check if session has been disposed
Get the host name of your local host (the machine you are using)
Determines max number of UpdateTransaction objects we maintain in update transaction log in Database 0, initially set to 9990
Get a list of all new databases created within this transaction
Set to an Action of your choice if you want to get notified right before commit of an update transaction.
Get/Set default value for Cache
Get the path to the directory of the system Databases (0.odb, 1.odb, 2.odb ...) of this session.
Get the host name of the system Databases (0.odb, 1.odb, 2.odb ...) of this session.
All text encoding is done with utf8
If set to true, each time an index (BTreeSet) is used in a LINQ query expression, we output a line about that to the console output.
Gets the transaction number of the current session
This is specifically for Windows Phone API, set to true when you want to access databases from a memory card.
Get/Set the max time waiting for a lock to clear with pessimistic locking
Allow object serialization and page writes to happen in worker threads, one per database, instead of in main session thread. AddToIndexInSeperateThread must also be enabled for this to work.