mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
* 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
# README
########
This directory contains:
data: A directory with SQL script to add Dolibarr initial data.
migration: A directory with SQL script to migrate Dolibarr database from
one version to another version.
tables: A directory with all files with create tables and index orders.