fix: performance tweaks

Moved getConnection and ScheduleResourceTick above the try block.
Moved connection.release into the finally block
Increased default connection timeout to 1 minute.
This commit is contained in:
Linden committed 2021-12-06 17:55:50 +11:00
1 parent 87a5123117
commit 45b90c4ad3
4 files changed
+19 -12

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ game 'common'
name 'oxmysql'
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.'
version '1.8.4'
version '1.8.5'
url 'https://github.com/overextended/oxmysql'
author 'overextended'
use_fxv2_oal 'yes'