Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

DB tweaking for performance

Hi all,

We have been upgrading 2.11.1 OCS server and we still have performance issue link to the software table.

In order to solve this issue, we added a key to this table:

 ALTER TABLE `software`

  ADD PRIMARY KEY (`ID`),

  ADD KEY `HARDWARE_ID` (`HARDWARE_ID`),

  ADD KEY `NAME_ID` (`NAME_ID`),

  ADD KEY `PUBLISHER_ID` (`PUBLISHER_ID`),

  ADD KEY `VERSION_ID` (`VERSION_ID`),

  ADD KEY `HARDWARE_ID_2` (`HARDWARE_ID`,`NAME_ID`,`VERSION_ID`) USING BTREE;

With this change, no more slowness. Maybe it could be helpful to bring it by default into the codebase.

Pull requet created https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/1530

in OCS Inventory NG server for Unix by (300 points)
edited by

1 Answer

+1 vote

Hello @H4mm2r and thank you for sharing !

You can contribute more effectively to the development of OCS Inventory by submitting your work on Github : Pull requests ยท OCSInventory-NG/OCSInventory-ocsreports (github.com)

Regards, Steph

by (32.6k points)
 
Powered by Question2Answer
...