mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 01:01:30 -05:00
The climit previously of this commit is heavily used inside a transactions, so in heavy contention operation such that file thumbnail creation can cause a db pool exhaust. This commit fixes this issue setting up a better resource limiting mechanism that works outside the transactions so, contention will no longer hold an open connection/transaction. It also adds general improvement to the traceability to the climit mechanism: it now properly logs the profile-id that is currently cause some contention on specific resources. It also add a general/root climit that is applied to all requests so if someone start making abussive requests, we can clearly detect it. |
||
---|---|---|
.. | ||
dev | ||
scripts | ||
src/app/common | ||
target/classes/app/common | ||
test/common_tests | ||
vendor | ||
.gitignore | ||
build.clj | ||
deps.edn | ||
package.json | ||
shadow-cljs.edn | ||
yarn.lock |