Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Kea Kea
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 504
    • Issues 504
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 51
    • Merge requests 51
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #1564

Closed
Open
Created Nov 22, 2020 by Francis Dupont@fdupontDeveloper

possible host retrieval optimization

allocateLeases6 retrieves client leases using IA type, DUID and IAID, and filters the result using the subnets of the shared network.

renewLeases6 retrieves client leases using IA type, DUID, IAID and subnet ID, and merges results iterating the subnets of the shared network.

Both ways get exactly the same list of leases but with different database queries.

Outside shared network the subnet ID narrows the search so it lightly more efficient. In a shared network it uses one query per subnet so is clearly less efficient.

In conclusion the idea is to factor the two retrievals and to use the best way according to in/outside a shared network.

Edited Dec 21, 2020 by Francis Dupont
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking