Skip to content

REST response time does not scale properly with limit param while including config_context #9374

@BowmanKlinkenberg

Description

@BowmanKlinkenberg

NetBox version

v3.2.2

Python version

3.9

Steps to Reproduce

  1. GET devices from /api/dcim/devices, including config_context, with a resulting count field less than 100, and limit=100 (for example, use a query parameter that would result in a low number of matches)
  2. GET devices from /api/dcim/devices including config_context, with a resulting count field greater than 100,000, and limit=100 (for example, use a query parameter that would result in a high number of matches)

Expected Behavior

  1. Similar API response times from either query, scaling with limit

Observed Behavior

  1. When the exclude=config_context parameter is included in a query, there is a similar response time between queries that return a large dataset, and queries that return a small dataset
  2. When exclude=config_context is omitted (i.e. config context is fetched), queries that return a large dataset increase in response time dramatically vs. smaller queries, regardless of limit

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions