-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve triggers query performances
We used to query all triggers, in order to determine which konnectors accounts are connected, to adapt display on the homepage. However, this query can be very time-consuming: it takes ~10s on an instance with 700+ triggers. This is due to the stack computing job information from each trigger. As we do not need such information here, we force the generic `/data` route, rather than the specialized `/jobs/triggers` route.
- Loading branch information
1 parent
31f2564
commit 228127a
Showing
4 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6002,16 +6002,16 @@ [email protected]: | |
lodash "^4.17.20" | ||
node-jose "^1.1.4" | ||
|
||
cozy-client@^51.0.0: | ||
version "51.0.0" | ||
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-51.0.0.tgz#84b7f9c6a3c678791de7b06539af6595e0bb51c2" | ||
integrity sha512-txbEkQFuZX1ZXi1/2bXLJK9SQR+sbZjjztIv3pt+g73veuVVz5wyDoJkMbLLf5dSiHARpHIWgIdBfX4prZwpWQ== | ||
cozy-client@^51.6.0: | ||
version "51.6.0" | ||
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-51.6.0.tgz#22f77a40f316011d8e8a298cc9d4cbc7cfdbbcc0" | ||
integrity sha512-H0jhhju5jhoQHCiPZB2tfoRZb4QrhxfArNTRwLs5Lsd3+5WmtaSnPgbQUTBHWPRCv7qxP89Spz7eSgDmpdzA5Q== | ||
dependencies: | ||
"@cozy/minilog" "1.0.0" | ||
"@types/jest" "^26.0.20" | ||
"@types/lodash" "^4.14.170" | ||
btoa "^1.2.1" | ||
cozy-stack-client "^51.0.0" | ||
cozy-stack-client "^51.6.0" | ||
date-fns "2.29.3" | ||
json-stable-stringify "^1.0.1" | ||
lodash "^4.17.13" | ||
|
@@ -6310,6 +6310,15 @@ cozy-stack-client@^51.0.0: | |
mime "^2.4.0" | ||
qs "^6.7.0" | ||
|
||
cozy-stack-client@^51.6.0: | ||
version "51.6.0" | ||
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-51.6.0.tgz#bd81605bdd1e68161d1143856f78bca969086575" | ||
integrity sha512-MRBTKtBtQ6jnmS4ij+nYjgeOecSNr9Z9kCNDlKW9884JxnI4VGfpq1w+ihN3EVh3EyqD98vnaQZ8VuYr6czeVQ== | ||
dependencies: | ||
detect-node "^2.0.4" | ||
mime "^2.4.0" | ||
qs "^6.7.0" | ||
|
||
[email protected]: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e" | ||
|