19 Commits

Author SHA1 Message Date
13xforever
48fb3fcd5b fix all the places where database is actually open for modification 2025-03-29 08:47:19 +05:00
13xforever
1a9359d863 switch to AsyncReadWriteLock to support async/await 2025-03-27 14:59:26 +05:00
13xforever
5ef4301bd1 more ValueTask updates 2025-03-27 12:51:12 +05:00
13xforever
55f45457a2 use read/write locking for sqlite to fix Error 5: 'database is locked' 2025-03-27 12:20:33 +05:00
13xforever
5f039d3939 add global usings 2025-03-08 07:01:22 +05:00
Ilya
72dbc4074a Some performance and code optimizations (#955)
* upgrade deps, remove wrong ppu hashes

* upgrade compiler packages

will require container pull after build

* replace Regex with compiler-generated versions

* use new collection initialization syntax

* configure global defaults for regex

* bump min amd driver version

fixes #950

* add macos version check

fixes #948

* fix #954 (!sudo log date)
2024-05-18 14:26:34 +01:00
13xforever
8518b7824d update handling of bot usage stats
* wrap everything inside the provider
* do hour-long buckets to workaround the long-standing issue of sticky data bias
* remove stale data on stats restore instead of nuking-n-paving on every stat save
2022-07-04 21:48:32 +05:00
13xforever
92751ba6e9 use file-scoped namespaces to reduce nesting
some formatting might be fucked
2022-06-30 00:59:46 +05:00
13xforever
1c915e05b5 use await using where appropriate 2020-11-14 15:25:20 +05:00
13xforever
24f63858e0 replace object initialization with the new() 2020-11-14 14:33:29 +05:00
13xforever
610c01318a botupdate, part 2 2020-11-13 02:48:49 +05:00
13xforever
eac6be7e23 refactor to use using statement whenever it makes sense 2019-11-25 18:07:01 +05:00
13xforever
cda055882a oh, I _am_ stupid 2019-03-06 23:53:42 +05:00
13xforever
ae33b04edc so apparently you need to do this in two separate transactions, ugh 2019-03-06 23:49:48 +05:00
13xforever
f1516583e6 still no idea why it fails sometimes 2019-03-06 23:42:31 +05:00
13xforever
b557b3642c add diagnostics to the stats saving 2019-03-06 23:25:23 +05:00
13xforever
b522dbce35 fml 2019-03-02 00:02:09 +05:00
13xforever
a575906d6a potential issue with saving stats 2019-03-01 23:57:55 +05:00
13xforever
85f1649bf7 add bot stats persistence 2019-03-01 20:52:37 +05:00