Files
dolibarr/htdocs/core
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-07 16:18:34 +02:00
2024-05-30 13:37:17 +02:00
2024-06-05 14:56:30 +02:00
2024-06-05 14:55:07 +02:00
2024-06-08 16:59:40 +02:00
2024-05-31 12:54:53 +02:00
2024-05-05 18:28:23 +02:00
2024-05-01 18:34:38 +02:00
2024-04-29 17:50:58 +02:00
2024-04-10 01:38:36 +02:00
2024-03-28 17:10:22 +01:00
2024-03-28 21:29:02 +01:00
2024-03-30 00:18:42 +01:00