Performance: /note-types endpoint very slow with > 3.5 million notes

Description

In a system with more than 3.5 million rows in the note_data table, the performance of the /note-types endpoint is extremely slow. A call to the endpoint (as performed, for example, by the Courses UI) takes more than 15 seconds. The mod-notes log shows a warning:

You can see that the seemingly innocent SQL query results in a sequential scan on all rows of the note_type table.

This is on a system running Kiwi HF 3.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Khalilah Gambrell June 1, 2022 at 9:26 PM

Duplicates modnotes-224

Duplicate

Details

Assignee

Reporter

Priority

Development Team

Spitfire

RCA Group

TBD

Affected Institution

Duke

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 31, 2022 at 7:00 PM
Updated June 1, 2022 at 9:26 PM
Resolved June 1, 2022 at 9:26 PM
TestRail: Cases
TestRail: Runs