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

Add index at revision table for improving system performance 🚀 #1856

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

yamashush
Copy link

The SQLs to select records from the revision table is a sequential scan.
These SQLs use note id as a search key, but there is no index on the note id column.

I want to change to index scan to improve system performance 🚀
The records in the revision table will become huge during operation, so sequential scans should be avoided.
This is especially because the following fetch processing is called frequently.

codimd/app.js

Line 277 in d157fde

models.Revision.checkAllNotesRevision(function (err, notes) {

For your reference, the organization I belong to has already changed it. (kufu#19)

Signed-off-by: yamashush <38120991+yamashush@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

1 participant