Files
FreshRSS/app/Models
Alexandre Alapetite 0bf33abac8 SQL: Same updateCacheUnreads for all DBs (#5648)
* SQL: Same updateCacheUnreads for all DBs
Use same SQL update request for MySQL / MariaDB than the one we already used for PostgreSQL / SQLite (i.e. using a sub-query).

Testing on a DB of 688MB with 270k entries, 199 feeds, 19 categories, using MySQL 8.1.0.

The new SQL update using a sub-query took in average 0.02s, while the old SQL update using a join took in average 0.05s. SQL cache was properly invalidated between each run. The new SQL request is thus about twice faster.

Another advantage of the SQL update using a sub-query is that it works identically in PostgreSQL, SQLite, MariaDB, MySQL, so we do need different versions anymore.

Contributes to https://github.com/FreshRSS/FreshRSS/issues/5008#issuecomment-1709755370

* Force USE INDEX

* Use same SQL methods also for markReadEntries, markReadCat
2023-09-12 13:44:17 +02:00
..
2023-02-03 14:35:59 +01:00
2023-09-04 10:09:37 +02:00
2023-04-17 08:30:21 +02:00
2023-08-03 21:56:35 +02:00
2023-03-27 00:36:21 +02:00
2023-03-27 00:36:21 +02:00
2023-04-17 08:30:21 +02:00
2023-09-12 10:43:14 +02:00
2023-06-13 22:39:33 +02:00
2023-05-11 12:53:32 +02:00