Hi Nicolas,
take a look here:
SAP Business One SDK DI Server
DI server runs server-side so you should have better performances than running code on clients.
You should also consider database maintenance tasks to improve overall performances. There are some SAP notes about those tasks as well as SQL server standard maintenance tasks.
Regards,
Pierre