• Zenon Mousmoulas's avatar
    Refactor views.utils.create_links_dict() for speed · 11c2cfc0
    Zenon Mousmoulas authored
    This iterates through all Link interfaces (in the typical use case this means
    all backbone interfaces, which can be a lot) and searches for all DataSources
    (via ifce.as_dict() -> ifce.get_datasources()), which hits the database with
    (somewhat) expensive queries, one for each ifce.
    Refactor so the database is hit only once with a list of ifce IDs, using a
    larger query which is considerably faster than the previous alternative.
    However this inevitably means sacrificing Django QuerySet semantics.
    11c2cfc0
Name
Last commit
Last update
static/maps Loading commit data...
templates/maps Loading commit data...
templatetags Loading commit data...
urls Loading commit data...
views Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
__init__.py Loading commit data...
tests.py Loading commit data...