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-20 03:30:25 +02:00
2024-01-03 08:50:01 -07:00
2023-10-16 05:50:43 +02:00
2024-03-14 13:48:00 +01:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2023-10-26 13:37:21 +02:00
2023-10-26 13:37:21 +02:00
2024-01-03 08:50:01 -07:00
2023-10-23 19:13:02 +02:00
2024-01-03 08:50:01 -07:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-05 10:36:30 +02:00
2023-10-12 15:35:41 +02:00
2023-10-12 15:35:41 +02:00
2024-01-09 14:10:31 +01:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-01-23 17:24:00 +01:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-01-11 12:38:01 +01:00
2024-05-21 18:01:13 +02:00
2024-05-13 03:00:31 +02:00
2024-05-12 12:20:00 +02:00
2024-05-05 00:30:14 +02:00
2024-04-14 01:30:23 +02:00
2024-01-03 08:50:01 -07:00
2024-06-08 02:34:58 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-09 09:18:56 +01:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-05-05 01:27:32 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2023-10-31 10:44:58 +01:00
2024-05-13 03:18:30 +02:00
2024-04-29 11:29:32 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-05-05 01:27:32 +02:00
2024-01-15 09:49:33 +01:00
2024-01-03 08:50:01 -07:00
2024-04-08 12:44:49 +02:00
2024-06-03 13:51:36 +02:00
2024-01-03 08:50:01 -07:00
2024-03-01 12:38:06 +01:00
2024-02-18 15:17:02 +01:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2023-11-10 18:52:17 +01:00
2024-02-25 09:28:14 +01:00
2023-10-12 15:35:41 +02:00
2024-01-03 08:50:01 -07:00
2023-10-27 15:01:11 +02:00
2023-11-10 18:52:17 +01:00
2024-02-25 09:28:14 +01:00
2024-01-09 09:18:56 +01:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2023-11-01 15:52:02 +01:00
2024-01-03 08:50:01 -07:00
2024-06-08 00:27:50 +02:00
2024-04-29 22:53:43 +02:00
2024-05-05 01:27:32 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-04-30 00:28:47 +02:00
2024-01-03 08:50:01 -07:00
2023-10-17 14:15:43 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-19 09:00:53 +01:00
2023-09-25 17:17:52 +02:00
2024-02-09 15:58:49 +01:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2024-04-14 01:52:02 +02:00
2023-11-03 16:29:40 +01:00
2024-06-08 02:34:58 +02:00
2023-12-14 14:01:28 +01:00
2024-03-13 15:38:29 +01:00
2024-03-13 15:38:29 +01:00
2024-01-11 10:51:49 +01:00
2024-01-11 10:51:49 +01:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-11 10:51:49 +01:00
2024-01-09 14:10:31 +01:00
2024-06-08 19:35:28 +02:00
2024-05-29 01:10:56 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-05-29 01:10:56 +02:00
2024-04-27 05:03:15 +02:00
2024-01-03 08:50:01 -07:00
2024-06-04 11:15:56 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2023-11-14 17:33:50 +01:00
2024-01-15 10:00:42 +01:00
2024-01-15 10:00:42 +01:00
2024-06-08 00:27:50 +02:00
2024-03-25 12:14:25 +01:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2023-10-26 12:36:12 +02:00
2023-10-26 12:36:12 +02:00
2024-04-08 11:40:02 +02:00
2024-01-03 08:50:01 -07:00
2023-11-15 11:47:15 +01:00
2024-05-13 03:25:05 +02:00
2024-05-13 03:25:05 +02:00
2023-11-20 17:46:57 +01:00
2023-10-23 19:13:02 +02:00
2024-02-24 19:19:25 +01:00
2024-01-03 08:50:01 -07:00
2024-06-03 11:50:40 +02:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-01-03 08:50:01 -07:00
2024-03-29 13:19:32 +01:00
2024-03-15 10:38:07 +01:00
2024-03-19 01:52:03 +01:00
2024-01-03 08:50:01 -07:00
2023-10-23 19:13:02 +02:00
2024-04-22 14:50:25 +02:00
2024-01-03 08:50:01 -07:00
2024-02-17 14:35:57 +01:00
2024-01-12 17:10:16 +01:00
2024-01-12 17:10:16 +01:00
2024-01-12 17:10:16 +01:00
2024-01-12 17:10:16 +01:00