Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yamashush
Copy link
Contributor

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)

@yamashush yamashush force-pushed the add-index-at-revisions branch from a6249ab to 8f7827d Compare January 14, 2024 12:39
@Yukaii Yukaii added this to the 2.5.4 milestone Jun 5, 2024
@Yukaii Yukaii force-pushed the add-index-at-revisions branch from 8f7827d to 0701fd7 Compare June 5, 2024 07:00
Signed-off-by: Yukai Huang <[email protected]>
@Yukaii Yukaii merged commit f00df50 into hackmdio:develop Jun 5, 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

Successfully merging this pull request may close these issues.

2 participants