Engine & DB Tuning
Linux sysctl Network Buffers & QBCore CitizenID SQL Index Audit
Add missing composite indexes on citizenid, plate, and stash columns while raising Linux file descriptors for 512-slot FXServer.
nofile 65536 · rmem_max 16 MB · 90% Faster SQL Lookups
Why Full Table Scans Kill Late-Season Servers
A fresh city with 200 rows in player_vehicles runs fast without indexes. Three months later with 120,000 registered vehicles and 400,000 inventory stashes, every garage open triggers a full-table scan and 250 ms hitch.
OS File Descriptors & UDP Queue Tuning
Raise net.core.rmem_max=16777216 and systemd LimitNOFILE=65536 so FXServer never drops asset-stream HTTP connections or MariaDB local sockets at peak join time.
Measured Thresholds & Server Configuration
| Database / OS Target | Default Setting | Optimized Production Setting |
|---|---|---|
| players.citizenid / license | Often missing secondary index | B-Tree INDEX on citizenid & license |
| player_vehicles.plate | Full table scan at 80k rows | UNIQUE/INDEX on plate & citizenid |
| Linux LimitNOFILE | 1024 soft limit | 65536 for FXServer + MariaDB |