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