Files
dolibarr/htdocs/install/mysql/tables
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
..
2023-10-16 05:50:43 +02:00
2024-03-14 13:48:00 +01:00
2023-09-08 15:41:07 +02:00
2023-04-05 01:16:54 +02:00
2023-03-12 14:35:57 +01:00
2023-06-06 04:56:57 +02:00
2024-01-11 12:38:01 +01:00
Doc
2024-05-13 03:00:31 +02:00
2023-05-18 11:56:34 +02:00
Doc
2024-04-14 01:30:23 +02:00
Doc
2024-01-09 09:18:56 +01:00
2023-06-06 12:02:13 +02:00
Doc
2024-05-13 03:18:30 +02:00
2023-10-27 15:01:11 +02:00
Doc
2024-01-09 09:18:56 +01:00
2024-04-30 00:28:47 +02:00
2023-10-17 14:15:43 +02:00
2023-08-05 11:31:50 +02:00
2023-05-13 22:09:19 +02:00
2023-03-21 22:35:52 +01:00
2023-08-26 12:21:42 +02:00
2022-12-11 22:39:30 +01:00
2024-03-13 15:38:29 +01:00
2024-03-13 15:38:29 +01:00
2024-01-09 14:10:31 +01:00
2024-05-29 01:10:56 +02:00
2024-05-29 01:10:56 +02:00
Doc
2024-06-04 11:15:56 +02:00
2024-03-25 12:14:25 +01:00
2023-11-15 11:47:15 +01:00
2023-11-20 17:46:57 +01:00
2024-02-24 19:19:25 +01:00
2024-06-03 11:50:40 +02:00
Doc
2023-07-09 13:12:17 +02:00