Skip to content

feat: Reduce amount of requests to Infoblox API - #80

Open
fust wants to merge 1 commit into
AbsaOSS:mainfrom
fust:fix/reduce-infoblox-requests
Open

fust wants to merge 1 commit into
AbsaOSS:mainfrom
fust:fix/reduce-infoblox-requests

Conversation

@fust

@fust fust commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

When nameRegex is configured together with a view, the provider was still fetching all zones and issuing separate record queries per zone and per record type, resulting in N zones × M record types API calls on every sync.
Since nameRegex causes ExtendedRequestBuilder to add a name~ filter to every query anyway, zone-scoping becomes redundant: the same filtering can be achieved with a single global query per record type.

This PR adds useGlobalForwardRecordQueries() (true when both nameRegex and view are set) and skips zone fetching entirely for forward records in that case, reducing API calls from N×M to M.
Zone fetching is still performed when PTR record creation is enabled, since PTR records must be queried per reverse zone.

@k0da k0da left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants