Skip to content

4.0.0-beta.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@QSmally QSmally released this 25 Oct 15:38
· 548 commits to v4 since this release

This release drafts the fifth beta version of QDB4.

I decided to extend the beta lifetime of QDB, as I'm not entirely sure of the structure and features of this module. As such, there could be a few major changes coming in the next release(s).

Fixes

  • Documentation type fixes.
  • Transaction activity check before committing/rolling back. (0292a77)

CacheMaxSize

Secondly, there's a new option added to the Connection options. A CacheMaxSize integer (or false), which currently only has the eviction strategy to stop adding new entries to the cache until space has freed up. I found that this is the most performant out of everything I benchmarked, and is currently the only eviction strategy implemented.

Threaded Pools

Finally, I have made internal changes to the threaded Pool. These changes aren't that visible, but now the methods on the Gateway class are automatically attached from the Connection class.

As for the future of threaded Pools, I'm also not quite sure if they're going to be any useful. I might drop the support for threaded Pools as implementing your own would be more performant anyways. Additionally, threaded Pools remove the possibility to attach functions to your queries, and those queries are mostly always the slowest - which defeats the purpose of the thread.