IP Library › Granted Patent US 12,204,557
Granted Patent B2
US 12,204,557 · App. 18/504,754 · Granted Jan 21, 2025

Database synchronization using resizable invertible bloom filters with database snapshots

Inventor: Jason Nochlin (Denver, CO)
Assignee: FIVETRAN INC.
G06F16/27G06F16/2255
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,204,557
App. No.
18/504,754
Granted
Jan 21, 2025
Kind
B2
Abstract

A centralized database management system performs data synchronization with lower bandwidth consumption and higher efficiency using a resizable invertible bloom filter. The system may include a resizable invertible bloom filter module that constructs and maintains invertible bloom filters that are resizable based on a number of differences between different snapshots. The resizable invertible bloom filter module may maintain a list of possible sizes for a resizable invertible bloom filter. The resizable invertible bloom filter module may determine and maintain a list of applicable partition sizes, each partition size being a product of a divisor and a resizing factor. If the number of differences exceeds the number of expected differences and results in failure in decoding, the system may retry a larger size in a set of predetermined sizes. The system may continue to try larger sizes until a minimal size required for successful decoding is found.

Claims (43)

1. A method comprising:

generating a first resizable invertible bloom filter of a source data table based on information of the source data table at a first point in time;

generating a second resizable invertible bloom filter for the source data table based on information of the source data table at a second point in time, wherein the first resizable invertible bloom filter and the second resizable invertible bloom filter have a same first size that is determined based on an estimated number of changes in the source data table between the first point in time and the second point in time;

determining an actual number of changes in the source data table between the first point in time and the second point in time;

responsive to the actual number of changes being greater than the estimated number of changes, expanding the first size of the first and second resizable invertible bloom filters to a second size by reassigning elements from the first and the second resizable invertible bloom filters, the expanding resulting in a first expanded resizable invertible bloom filter and a second expanded resizable invertible bloom filter;

identifying changes in the source data table that occurred between the first point in time and the second point in time based on the first expanded resizable invertible bloom filter and the second expanded resizable invertible bloom filter; and

sending instructions to a destination data table, the instructions comprising information to perform an operation that synchronizes the destination data table with the source data table based on the identified changes.

2. The method of claim 1 , wherein the first and second sizes are determined based on mathematical constraints.

3. The method of claim 1 , wherein the first and second sizes are determined based on a set of prime divisors and a set of resizing factors, and wherein each size is a product of a prime divisor of the set of prime divisors and a resizing factor of the set of resizing factors.

4. The method of claim 3 , wherein each resizing factor of the set of resizing factors is a prime number.

5. The method of claim 4 , wherein each prime divisor of the set of prime divisors is multiplied by each resizing factor of the set of resizing factors in descending order.

6. The method of claim 3 , wherein each prime divisor in the set of prime divisors has a same value, and wherein each prime divisor of the set of prime divisors is multiplied by each resizing factor of the set of resizing factors.

7. The method of claim 1 , wherein identifying the changes in the source data table further comprises:

generating a third resizable invertible bloom filter by subtracting the second resizable invertible bloom filter from the first resizable invertible bloom filter, the third resizable invertible bloom filter comprising information associated with a change in the source data table that occurred between the first point in time and the second point in time.

8. The method of claim 7 , further comprising identifying the changes by decoding the third invertible bloom filter.

9. A non-transitory computer-readable storage medium storing executable computer instructions that, when executed by one or more processors, cause the one or more processors to perform operations, the instructions comprising instructions to:

generate a first resizable invertible bloom filter of a source data table based on information of the source data table at a first point in time;

generate a second resizable invertible bloom filter for the source data table based on information of the source data table at a second point in time, wherein the first resizable invertible bloom filter and the second resizable invertible bloom filter have a same first size that is determined based on an estimated number of changes in the source data table between the first point in time and the second point in time;

determine an actual number of changes in the source data table between the first point in time and the second point in time;

responsive to the actual number of changes being greater than the estimated number of changes, expand the first size of the first and second resizable invertible bloom filters to a second size by reassigning elements from the first and the second resizable invertible bloom filters based, the expanding resulting in a first expanded resizable invertible bloom filter and a second expanded resizable invertible bloom filter;

identify changes in the source data table that occurred between the first point in time and the second point in time based on the first expanded resizable invertible bloom filter and the second expanded resizable invertible bloom filter; and

send instructions to a destination data table, the instructions comprising information to perform an operation that synchronizes the destination data table with the source data table based on the identified changes.

10. The non-transitory computer-readable storage medium of claim 9 , wherein the first and second sizes are determined based on mathematical constraints.

11. The non-transitory computer-readable storage medium of claim 9 , wherein the first and second sizes are determined based on a set of prime divisors and a set of resizing factors, and wherein each size is a product of a prime divisor of the set of prime divisors and a resizing factor of the set of resizing factors.

12. The non-transitory computer-readable storage medium of claim 11 , wherein each resizing factor of the set of resizing factors is a prime number.

13. The non-transitory computer-readable storage medium of claim 12 , wherein each prime divisor of the set of prime divisors is multiplied by each resizing factor of the set of resizing factors in descending order.

14. The non-transitory computer-readable storage medium of claim 11 , wherein each prime divisor in the set of prime divisors has a same value, and wherein each prime divisor of the set of prime divisors is multiplied by each resizing factor of the set of resizing factors.

15. The non-transitory computer-readable storage medium of claim 9 , wherein identifying the changes in the source data table further comprises:

generating a third resizable invertible bloom filter by subtracting the second resizable invertible bloom filter from the first resizable invertible bloom filter, the third resizable invertible bloom filter comprising information associated with a change in the source data table that occurred between the first point in time and the second point in time.

16. The non-transitory computer-readable storage medium of claim 15 , wherein the instructions comprising instructions to identify the changes by decoding the third invertible bloom filter.

17. A computing system comprising:

a processor; and

a non-transitory computer-readable storage medium storing instructions, the instructions when executed by the processor cause the processor to perform steps including:

generating a first resizable invertible bloom filter of a source data table based on information of the source data table at a first point in time;

generating a second resizable invertible bloom filter for the source data table based on information of the source data table at a second point in time, wherein the first resizable invertible bloom filter and the second resizable invertible bloom filter have a same first size that is determined based on an estimated number of changes in the source data table between the first point in time and the second point in time;

determining an actual number of changes in the source data table between the first point in time and the second point in time;

responsive to the actual number of changes being greater than the estimated number of changes, expanding the first size of the first and second resizable invertible bloom filters to a second size by reassigning elements from the first and the second resizable invertible bloom filters, the expanding resulting in a first expanded resizable invertible bloom filter and a second expanded resizable invertible bloom filter;

identifying changes in the source data table that occurred between the first point in time and the second point in time based on the first expanded resizable invertible bloom filter and the second expanded resizable invertible bloom filter; and

sending instructions to a destination data table, the instructions comprising information to perform an operation that synchronizes the destination data table with the source data table based on the identified changes.

18. The system of claim 17 , wherein the first and second sizes are determined based on a set of prime divisors and a set of resizing factors, and wherein each size is a product of a prime divisor of the set of prime divisors and a resizing factor of the set of resizing factors.

19. The system of claim 17 , wherein identifying the changes in the source data table further comprises:

generating a third resizable invertible bloom filter by subtracting the second resizable invertible bloom filter from the first resizable invertible bloom filter, the third resizable invertible bloom filter comprising information associated with a change in the source data table that occurred between the first point in time and the second point in time.

20. The system of claim 19 , wherein the steps further include identifying the changes by decoding the third invertible bloom filter.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 14, 2023
From: NOCHLIN, JASON
To: FIVETRAN INC.
Reel/Frame 065555/0844 →
Continuity (3)
Continuation 17954147 · Sep 27, 2022
Provisional Application 63281005 · Nov 18, 2021
Related Publication 20240078249A1 · Mar 7, 2024
References Cited (12)
US 20130132408A1 · Little · 2013 [cited by applicant]
US 20150199416A1 · Kashyap et al. · 2015 [cited by applicant]
US 20170070492A1 · Rubin et al. · 2017 [cited by applicant]
US 20170293529A1 · Robison et al. · 2017 [cited by applicant]
US 20180004829A1 · Kathuria et al. · 2018 [cited by applicant]
US 20190370381A1 · Klein et al. · 2019 [cited by applicant]
US 20200081901A1 · Arnold et al. · 2020 [cited by applicant]
US 20200278963A1 · Destefanis et al. · 2020 [cited by applicant]
Khalid, A. et al. “Optimized Cuckoo Filters for Efficient Distributed SDN and NFV Applications.” 2020 IEEE Conference on Network Function Virtualization and Software Defined Networks (NFV-SDN), Nov. 10-12, 2020, pp. 77-… [cited by applicant]
Lu, J. et al. “One-Hashing Bloom Filter,” IEEE 23rd International Symposium on Quality of Service, Jun. 15-16, 2015, pp. 289-298. [cited by applicant]
PCT International Search Report and Written Opinion, PCT Application PCT/US2022/049691, Feb. 22, 2023, 15 pages. [cited by applicant]
United States Office Action, U.S. Appl. No. 17/954,147, May 11, 2023, 6 pages. [cited by applicant]