dolibarr/htdocs/install
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
..
doctemplates Optimize image file size 2024-05-22 01:00:51 +02:00
lib clean phpdoc for phpstan (#26905) 2023-12-01 19:51:32 +01:00
medias Optimize image file size 2024-05-22 01:00:51 +02:00
mssql
mysql Allow tweaking of the index that MySQL use when searching products (#29934) 2024-06-08 19:35:28 +02:00
pgsql QUAL: Add sqlfluff (SQL code and style check) (#29097) 2024-04-16 01:23:27 +02:00
sqlite3 QUAL: Add sqlfluff (SQL code and style check) (#29097) 2024-04-16 01:23:27 +02:00
.gitignore
check.php Qual: Apply automatic phan fixes (deprecations, unneeded imports) (#28154) 2024-02-13 21:46:12 +01:00
default.css
fileconf.php Qual: Several typing hints/some fixes. (#28483) 2024-02-28 15:36:29 +01:00
inc.php Clean code 2024-04-25 11:13:34 +02:00
index.php
install.forced.sample.php Qual: Spelling htdocs/[d-k]* (#27427) 2024-01-13 19:48:41 +01:00
phpinfo.php
repair.php Debug v20 2024-05-15 18:04:52 +02:00
robots.txt
step1.php Clean phan warnings 2024-05-30 13:37:17 +02:00
step2.php Fix arg type to preg_replace by forcing type definition 2024-03-20 04:09:34 +01:00
step4.php Qual: Remove unnecessary use of $_GET 2024-03-28 20:19:28 +01:00
step5.php set default value of $conf->db->dolibarr_main_db_encryption to 0 (#29693) 2024-05-15 17:41:58 +02:00
upgrade.php Try to fix phan warnings 2024-04-28 13:02:49 +02:00
upgrade2.php PHPdoc typing 2024-03-24 11:03:06 +01:00