Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use reactiveCache for new features in v7.00 and newer #5000

Closed
mfilser opened this issue Jul 9, 2023 · 2 comments
Closed

Use reactiveCache for new features in v7.00 and newer #5000

mfilser opened this issue Jul 9, 2023 · 2 comments

Comments

@mfilser
Copy link
Contributor

mfilser commented Jul 9, 2023

There's coming a big PR with performance updates, especially to board and list loading.

I will add more informations here, especially for new "guidelines" for programming and data structure to make sure new features / PRs will also use the performance code.

@mfilser
Copy link
Contributor Author

mfilser commented Jul 18, 2023

Here are some information regarding the performance commit for future development.

For database selection there's a new class, ReactiveCache in imports/reactiveCache.js.
Every database selection must be done with this class, except this places:

If you need really need the database query and not an array set the parameter "getQuery" to true, e.g. at this commit: a533605.
This in only the case in some special situations, mostly with code working with the Meteor publication in server/publications/).

For combining database queries with an index search there's a new class ReactiveMiniMongoIndex.
For examples how to use it, have a look at the source code, e.g. here: ReactiveMiniMongoIndex.getChecklistItemsWithChecklistId
Using it at the right places can make many queries a lot faster.

@xet7
Copy link
Member

xet7 commented Aug 17, 2023

That big PR from @mfilser where all of WeKan code has been made to use reactiveCache is here, it can also be looked for examples:

#5014

@xet7 xet7 pinned this issue Aug 17, 2023
@xet7 xet7 changed the title Upcoming performance update v7.00 Use reactiveCache for new features in v7.00 and newer Aug 17, 2023
mfilser added a commit to mfilser/wekan that referenced this issue May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants