mirror of
https://github.com/google/nomulus
synced 2026-07-30 03:52:47 +00:00
Add an action to sync the remote Valkey cache (#3032)
This uses two cursors (one for hosts and one for domains) to track our progress in "catching up", or syncing recent changes to the database, using the update-timestamp field. When the cache is in use and fully caught up, these cursors should be kept relatively up-to-date to the actual time, i.e. less than one hour behind
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
|
||||
create table "Cursor" (
|
||||
scope text not null,
|
||||
type text not null check ((type in ('BRDA','RDE_REPORT','RDE_STAGING','RDE_UPLOAD','RDE_UPLOAD_SFTP','RECURRING_BILLING','SYNC_REGISTRAR_SHEET','ICANN_UPLOAD_TX','ICANN_UPLOAD_ACTIVITY'))),
|
||||
type text not null check ((type in ('BRDA','RDE_REPORT','RDE_STAGING','RDE_UPLOAD','RDE_UPLOAD_SFTP','RECURRING_BILLING','SYNC_REGISTRAR_SHEET','ICANN_UPLOAD_TX','ICANN_UPLOAD_ACTIVITY','REMOTE_CACHE_DOMAIN_SYNC','REMOTE_CACHE_HOST_SYNC'))),
|
||||
last_update_time timestamp(6) with time zone not null,
|
||||
cursor_time timestamp(6) with time zone not null,
|
||||
primary key (scope, type)
|
||||
|
||||
Reference in New Issue
Block a user