Optimize map SQL #3715

Merged
merged 1 commit into from Jun 24, 2016

Projects

None yet

3 participants

@pblasquez
Contributor

Changing LEFT joins to INNER joins brought a 70k result down from 4.1s to 1.7 in my testing. The only benefit to LEFT joins is to retrieve rows with no match, but we filter those rows out in the WHERE clause.

Was able to map interconnections between 254 devices in 47s with both 'mac' and 'xdp' options turned on.

@pblasquez pblasquez Optimize map SQL
Changing LEFT joins to INNER joins brought a 70k result down from 4.1s to 1.7 in my testing.  The only benefit to LEFT joins is to retrieve rows with no match, but we filter those rows out in the WHERE clause.

Was able to map interconnections between 254 devices in 47s with both 'mac' and 'xdp' options turned on.
a3d2e1b
@f0o f0o merged commit bb7e83b into librenms:master Jun 24, 2016

2 checks passed

Auto-Deploy Build finished.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment