Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Kea
Kea
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 445
    • Issues 445
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 71
    • Merge Requests 71
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #1564

Closed
Open
Opened 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
Kea1.9-backlog
Milestone
Kea1.9-backlog
Assign milestone
Time tracking
None
Due date
None
Reference: isc-projects/kea#1564