mirror of
https://github.com/moodle/moodle.git
synced 2025-04-02 23:12:32 +02:00
The COUNT window function can be helpful to fasten the complex query, but it's not recommended to be used for a single table query. The patch is specifically for PostgreSQL, MariaDB and Oracle databases as they have better performance compared to MySQL and MSSQL. Although these databases support the COUNT window functions, the results indicate that the query runs slower when using them.