FAQ Increase Performance: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 16: Line 16:
== Use the latest PHP version ==
== Use the latest PHP version ==
Efficiency: ***
Efficiency: ***
Each new version PHP makes application faster than the previous one. So, if you can, just upgrade.
 
Principle: Each new version PHP makes application faster than the previous one. So, if you can, just upgrade.


== Activate HTTP/2 ==
== Activate HTTP/2 ==
Efficiency: *
Efficiency: *
HTTP/2 protocol is know to be faster than HTTP/1.1. So if your OS and webserver is comaptible, just enable it.
 
Principle: HTTP/2 protocol is know to be faster than HTTP/1.1. So if your OS and webserver is comaptible, just enable it.


== Disable xdebug ==
== Disable xdebug ==
Line 83: Line 85:
Efficiency: ***
Efficiency: ***


Principle: If you activated, into Product module, the "autocomplete" search and list take a long time before to appear after typing a new character, this probably means you have an important number of product. Search is done everywhere in the text, so database index on field can't be used. By adding the constant PRODUCT_DONOTSEARCH_ANYWHERE to 1 into '''Home-Setup-Other''', you limit the search to the beginning of strings making possible for database to use index and you should get an immediate response.
Principle: If you activated, into Product module, the "autocomplete" search and list take a long time before to appear after typing a new character, this probably means you have an important number of product. Search is done everywhere in the text, so database index on field can't be used. By adding the constant PRODUCT_DONOTSEARCH_ANYWHERE to 1 into '''Home-Setup-Other''', you limit the search to the beginning of strings making possible for database to use index and you should get an immediate response. You also have the constant COMPANY_DONOTSEARCH_ANYWHERE for searches of third parties.


== Disable ajax combo ==
== Disable ajax combo ==
Efficiency: ***
Efficiency: ***


If you have a large amount of thirdparty or product (> 5000), you can disable the autocomplete feature on thirdparties list by setting constant MAIN_DISABLE_AJAX_COMBOX to 1 into '''Home-Setup-Other''' (with Dolibarr v3.6.0+).
If you have a large amount of third-party or product (> 5000), you can disable the autocomplete feature on third parties list by setting constant MAIN_DISABLE_AJAX_COMBOX to 1 into '''Home-Setup-Other''' (with Dolibarr v3.6.0+).


== Use a recent web browser ==
== Use a recent web browser ==

Navigation menu