1
0
Commit Graph

13 Commits

Author SHA1 Message Date
fe27dd59ad feat(subscription): use a recursive cte to fetch subscriptions of parent projects
Testing this locally resulted in improved response times from ~50ms to ~20ms when creating a project. It looks like even though the code running these sql queries uses different go routines, they affect each other (caused by IO or context switching?)
2024-03-03 15:34:18 +01:00
10ff864e0c fix(projects): load projects only one when fetching subscriptions for a bunch of projects at once
This change ensures already loaded projects are passed down when fetching their subscription  instead of re-loading each project with a single sql statement. When loading all projects, this meant all projects were loaded twice, which was highly inefficient. This roughly added 25ms to each request, assuming the per page limit was maxed out at 50 projects.

Empirical testing shows this change reduces load times by ~20ms. Because the request is already pretty fast, this is ~30% of the overall request time, making the loading of projects now even faster
2024-03-02 14:27:11 +01:00
d38050f2b8 fix(subscriptions): don't crash when a project is already deleted 2024-01-26 23:53:22 +01:00
e518fb1191 chore: remove year from copyright headers
Resolves https://kolaente.dev/vikunja/api/pulls/1483
2023-09-01 08:32:28 +02:00
b5194624e0 fix: don't try to load subscriptions for nonexistent projects 2023-07-03 18:18:13 +02:00
ebc3dd2b3e fix: lint errors 2023-05-24 15:51:57 +02:00
ceaa9c0e03 feat(subscriptions): make sure all subscriptions are inherited properly 2023-05-24 15:51:55 +02:00
fef253312c feat(projects): cleanup namespace leftovers 2023-05-24 15:51:54 +02:00
349e6a5905 feat: rename lists to projects 2023-03-13 14:28:06 +01:00
3adfeb3b34 fix(namespaces): add list subscriptions (#1254)
Add list subscriptions to namespaces call to enable frontend to show subscription state correctly.

Resolves https://github.com/go-vikunja/frontend/issues/75

Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1254
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Luca Bernstein <luca@lucabernstein.com>
Co-committed-by: Luca Bernstein <luca@lucabernstein.com>
2022-09-29 09:49:24 +00:00
e23014dbe4 Fix swagger docs for create requests 2021-05-26 21:56:31 +02:00
73f2d4532d Make sure all tables are properly pluralized 2021-03-28 20:17:35 +02:00
e7875ecb3b Subscriptions and notifications for namespaces, tasks and lists (#786)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/786
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-02-14 19:18:14 +00:00