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
..
ajax fix: travis CI (#29883) 2024-06-07 16:18:34 +02:00
boxes fix: cookie JS creation missing defaut attribute SameSite (#29862) 2024-06-08 02:49:57 +02:00
class Allow tweaking of the index that MySQL use when searching products (#29934) 2024-06-08 19:35:28 +02:00
data
db CHANGE: add a notice in getRows() instead of returning false (#29790) 2024-06-03 18:03:17 +02:00
filemanagerdol Clean phan warnings 2024-05-30 13:37:17 +02:00
js FIX updateTotal timesheet.js (#29846) 2024-06-05 14:56:30 +02:00
lib Fix dol_escape_htmltag to prevent bad strip of char (#29931) 2024-06-08 14:51:32 +02:00
login FIX missing state in OpenID Connect (#29788) 2024-06-04 19:38:18 +02:00
menus fix cti (#29842) 2024-06-05 14:55:07 +02:00
modules fix an old error (#29850) 2024-06-08 16:59:40 +02:00
tpl FIX missing state in OpenID Connect (#29788) 2024-06-04 19:38:18 +02:00
triggers Fix #29797 add test on Target status (#29860) 2024-06-06 23:32:19 +02:00
actions_addupdatedelete.inc.php NEW Can create new membership type from the create member form 2024-05-17 13:16:09 +02:00
actions_builddoc.inc.php Debug v20 2024-05-31 12:54:53 +02:00
actions_changeselectedfields.inc.php
actions_comments.inc.php
actions_dellink.inc.php
actions_extrafields.inc.php Fix warnings 2024-05-05 18:28:23 +02:00
actions_fetchobject.inc.php Fix warning 2024-05-01 18:34:38 +02:00
actions_lineupdown.inc.php
actions_linkedfiles.inc.php New msg attachment linked to event (#29022) 2024-04-24 15:18:45 +02:00
actions_massactions.inc.php Fix warning PHP 8.2 2024-04-22 18:42:34 +02:00
actions_printing.inc.php Fix regression fatal error 2024-04-12 01:35:32 +02:00
actions_sendmails.inc.php Debug v20 2024-04-29 17:50:58 +02:00
actions_setmoduleoptions.inc.php Clean code for barcode generators 2024-05-22 15:49:33 +02:00
actions_setnotes.inc.php
antispamimage.php
bookmarks_page.php
commonfieldsinexport.inc.php
commonfieldsinimport.inc.php
customreports.php CSS customreport 2024-04-10 01:38:36 +02:00
datepicker.php Clean code from _GET 2024-03-28 17:10:22 +01:00
doxygen.php
extrafieldsinexport.inc.php
extrafieldsinimport.inc.php
get_info.php Fix: Initialise $toprightmenu to fix PhanUndeclaredVariableAssignOp 2024-03-18 13:12:46 +01:00
get_menudiv.php
multicompany_page.php Adjust to real typings 2024-03-27 10:18:36 +01:00
photos_resize.php Clean use of $_POST 2024-03-28 21:29:02 +01:00
search_page.php
search.php
tools.php
website.inc.php Fix for external server mode 2024-03-30 00:18:42 +01:00