orientdb
orientdb copied to clipboard
Remove ODatabaseRecordThreadLocal and work with direct reference of database
Massive usage of thread locals leads to performance degradation. Those references are implemented not for free. They access an instance of the current thread and then hash the map stored in the given thread instance.
The usage of thread locals also makes instance management harder to do.