Add a note to invalidate cache after performing DB dump #2962

Closed
opened 2025-12-29 18:24:05 +01:00 by adam · 2 comments
Owner

Originally created by @bdlamprecht on GitHub (Oct 18, 2019).

Change Type

[X] Addition
[ ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Proposed Changes

Add some type of note regarding the need to invalidate the cache when migrating the Postgres DB between different machines.

I'll open a PR soon that addresses this fairly simple change.

Originally created by @bdlamprecht on GitHub (Oct 18, 2019). ### Change Type [X] Addition [ ] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) <!-- Describe the proposed change(s). --> ### Proposed Changes Add some type of note regarding the need to invalidate the cache when migrating the Postgres DB between different machines. I'll open a PR soon that addresses this fairly simple change.
adam added the status: acceptedtype: documentation labels 2025-12-29 18:24:05 +01:00
adam closed this issue 2025-12-29 18:24:06 +01:00
Author
Owner

@sdktr commented on GitHub (Oct 24, 2019):

Could you elaborate on:

  1. the scenario you are hinting at (what is migrated? Only the app, the cache or the DB is moved?)
  2. why invalidation is needed in this scenario, what problem does it solve?
@sdktr commented on GitHub (Oct 24, 2019): Could you elaborate on: 1) the scenario you are hinting at (what is migrated? Only the app, the cache or the DB is moved?) 2) why invalidation is needed in this scenario, what problem does it solve?
Author
Owner

@bdlamprecht commented on GitHub (Oct 24, 2019):

When migrating the data from one instance of NetBox to another separate server, without performing this command, it takes 10+ minutes for the sites or devices to appear on the appropriate webpage, even though they actually are there.

So no, it is not the end of the world, but just something to keep in mind.

@bdlamprecht commented on GitHub (Oct 24, 2019): When migrating the data from one instance of NetBox to another **separate** server, without performing this command, it takes 10+ minutes for the `sites` or `devices` to appear on the appropriate webpage, even though they _actually_ are there. So no, it is not the end of the world, but just something to keep in mind.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2962