Performance problems on Quartz Scheduler using MemSQL

Hi,

I am facing performance issues when I use MemSQL as persistent storage for Quartz Scheduler. Has somebody any experience with this please?
I created an example project - here: GitHub - chapcz/quartz-memsql

I had to prepare a custom Semaphore class for scheduler locking (MemsqlSemaphore).

In main class should be generated X jobs, which I want to run every 5 seconds. I think that running about 500 jobs should be fine, but from logger output scheduler runs units of jobs per second (1-2).

I will appreciate any suggestion. Bad configuration, wrong keys (copy of creation script for MySQL database).

Thanks.