Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Use last_updated field when using cache #1278

Open
mulmat opened this issue Jun 27, 2024 · 0 comments
Open

[Feature]: Use last_updated field when using cache #1278

mulmat opened this issue Jun 27, 2024 · 0 comments
Assignees

Comments

@mulmat
Copy link
Contributor

mulmat commented Jun 27, 2024

NetBox version

v4.0.6

Feature type

Change to existing Module

Proposed functionality

Make caching smarter by using the last_updated field. E.g. just fetch objects that have been added/updated since last run (+ also handle when objects have been deleted).

Use case

We have a lot of IP addresses and fetching them takes quite some time. Using cache resolves this issue but introduces an issue with stale data.
I'm happy to submit a PR for this.

External dependencies

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

No branches or pull requests

1 participant