2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/core/class
Aloïs Micard 0cfd16d8db Allow tweaking of the index that MySQL use when searching products (#29934)
* Allow tweaking of the index that MySQL use when searching products

Sometimes when working with large dataset with many entities the MySQL engine does not pick-up the right index.
This is especially true when doing a search over the reference because the LIKE '%%' prevent the uk_product_label from being chosen.

This PR aims to improve this situation by doing the following :

- Adding a simple index on entity column.
- Adding an hidden constant to force the index being used when searching products.

Performances over a 8M products dataset shows a reduction of 2/3 execution time.

* Add missing global $conf

* Fix wrong usage of getDolGlobalString()

* Finalise fix

* Add more indexes

* Rework indexes
2024-06-08 19:35:28 +02:00
..
2024-06-04 10:44:44 +02:00
2024-06-05 14:55:07 +02:00
2024-05-30 13:37:17 +02:00
2024-06-06 09:27:25 +02:00
2024-06-04 14:46:54 +02:00
2024-06-01 15:00:42 +02:00
2024-05-30 13:37:17 +02:00
2024-05-05 00:34:19 +02:00
2024-05-28 23:52:33 +02:00
2024-05-31 23:57:44 +02:00
2024-05-30 13:37:17 +02:00
2024-05-05 00:34:19 +02:00
css
2024-05-09 18:15:57 +02:00
2024-05-20 19:05:53 +02:00
2024-05-30 13:37:17 +02:00
2024-06-06 11:09:43 +02:00
2024-05-24 14:11:51 +02:00
2024-05-13 23:49:35 +02:00
2024-06-06 11:09:43 +02:00
2024-04-28 01:47:18 +02:00
2024-06-06 09:27:25 +02:00
2024-05-30 13:37:17 +02:00