During the get_networks method of ML2, we iterate over each network and do a database call to lookup the segments for that network. This scales the number of database calls linearly with the number of retrieved networks.
*** This bug has been marked as a duplicate of bug 1292167 ***