Network map sql update + fix for duplicate links #1455

Merged
merged 1 commit into from Jul 15, 2015

Projects

None yet

3 participants

@laf
Member
laf commented Jul 15, 2015

@Rosiak pointed out the load time for his map was high (9k+ ipv4_mac entries). After some debugging this is due to a missing index (mainly mac_address). I've tidied up the current indexes pointing to old column names and re-added the correct index and his query has gone from over 20 seconds to < 1 second.

In my testing with 40000 mac addresses but less ports I went from > 6 seconds to < 0.05 seconds.

I've also fixed duplicate links showing up with this as well.

@laf laf Network map sql update + fix for duplicate links
4c39421
@laf laf added Bug WebUI labels Jul 15, 2015
@f0o f0o merged commit 5f8c4dd into librenms:master Jul 15, 2015

2 checks passed

Auto-Deploy Build finished.
Details
Scrutinizer No new issues
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment