You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently a function called add_resource_attribute which is called repeatedly by the server in its add_resource_attributes function.
This functioin works well for a single call, but when called multipole thousands of times in a loop exposes massive inefficiency (~5000 resource attributes take > 90 seconds to add).
We should have a dedicated add_resource_attributes function which:
1: Assumes that all the RAs are being added to the same network
2: Identifies this network (by looking at any one of the RAs, extracting the node/link/group/network ID, and querying for the network ID if necesssary)
3: Extracts all the RAs in the network
4: Checks for overlaps and removes duplicates from the incoming RAs
5: Performs a bulk insert of RAs, rather than individual inserts.
The text was updated successfully, but these errors were encountered:
There is currently a function called
add_resource_attribute
which is called repeatedly by the server in itsadd_resource_attributes
function.This functioin works well for a single call, but when called multipole thousands of times in a loop exposes massive inefficiency (~5000 resource attributes take > 90 seconds to add).
We should have a dedicated add_resource_attributes function which:
1: Assumes that all the RAs are being added to the same network
2: Identifies this network (by looking at any one of the RAs, extracting the node/link/group/network ID, and querying for the network ID if necesssary)
3: Extracts all the RAs in the network
4: Checks for overlaps and removes duplicates from the incoming RAs
5: Performs a bulk insert of RAs, rather than individual inserts.
The text was updated successfully, but these errors were encountered: