IP Library › Granted Patent US 11,822,547
Granted Patent B2
US 11,822,547 · App. 17/376,235 · Granted Nov 21, 2023

Updating shared and independent materialized views in a multi-tenant environment

Inventors: Peng Hui Jiang (Beijing, CN); Jun Su (Beijing, CN); Yan Lin Ren (Shanghai, CN); Zhang Li (Beijing, CN); Hong Qing Zhou (Shanghai, CN)
Assignee: International Business Machines Corporation
G06F16/24539G06F16/2393
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 11,822,547
App. No.
17/376,235
Granted
Nov 21, 2023
Kind
B2
Abstract

Shared materialized views are maintained during data changes to the primary data and during creation of new materialized views. Shared data stored for use by shared materialized views is distinguished from data stored by an independent materialized view. A view selector manages data updates to shared materialized views and corresponding mapping table. The view selector directs movement of data between a shared materialized view and an independent materialized view through the lifecycle of the materialized views.

Claims (53)

1. A computer-implemented method comprising:

monitoring a change data feed to a primary data store for an update to a data operation;

responsive to detecting the update, analyzing the update for effect on stored materialized views;

identifying a set of stored materialized views that require updating due to the update to the data operation, the set of stored materialized views including shared materialized views using shared data stored in a shared materialized view store, and an independent materialized view using derived data; and

taking an update action on the set of stored materialized views, the update action including:

moving the derived data to the shared materialized view store; and

updating a mapping table for the shared data to include the derived data for the independent materialized view.

2. The computer-implemented method of claim 1 , wherein the update to a data operation is one of adding a data operation and deleting a data operation.

3. The computer-implemented method of claim 1 , further comprising:

collecting a set of queries against the primary data store;

identifying candidate queries to request against a materialized view;

determining to store query data derived from the candidate queries as either shared data or independent data; and

storing the shared data in the shared materialized view store for shared materialized views.

4. The computer-implemented method of claim 3 , further comprising:

creating the mapping table for the shared data; and

storing the mapping table in the shared materialized view store.

5. A computer program product comprising a computer-readable storage medium having a set of instructions stored therein which, when executed by a processor, causes the processor to perform a method comprising:

monitoring a change data feed to a primary data store for an update to a data operation;

responsive to detecting the update, analyzing the update for effect on stored materialized views;

identifying a set of stored materialized views that require updating due to the update to the data operation, the set of stored materialized views including shared materialized views using shared data stored in a shared materialized view store, and an independent materialized view using derived data; and

taking an update action on the set of stored materialized views, the update action including:

moving the derived data to the shared materialized view store; and

updating a mapping table for the shared data to include the derived data for the independent materialized view.

6. The computer program product of claim 5 , wherein the update to a data operation is one of adding a data operation and deleting a data operation.

7. The computer program product of claim 5 , further comprising:

collecting a set of queries against the primary data store;

identifying candidate queries to request against a materialized view;

determining to store query data derived from the candidate queries as either shared data or independent data; and

storing the shared data in the shared materialized view store for shared materialized views.

8. The computer program product of claim 7 , further comprising:

creating the mapping table for the shared data; and

storing the mapping table in the shared materialized view store.

9. A computer system comprising:

a processor set; and

a computer readable storage medium;

wherein:

the processor set is structured, located, connected, and/or programmed to run program instructions stored on the computer readable storage medium; and

the program instructions which, when executed by the processor set, cause the processor set to perform a method comprising:

monitoring a change data feed to a primary data store for an update to a data operation;

responsive to detecting the update, analyzing the update for effect of the change on stored materialized views;

identifying a set of stored materialized views that require updating due to the update to the data operation, the set of stored materialized views including shared materialized views using shared data stored in a shared materialized view store, and an independent materialized view using derived data; and

taking an update action on the set of stored materialized views, the update action including:

moving the derived data to the shared materialized view store; and

updating a mapping table for the shared data to include the derived data for the independent materialized view.

10. The computer system of claim 9 , wherein the update to a data operation is one of adding a data operation and deleting a data operation.

11. The computer system of claim 9 , further comprising:

collecting a set of queries against the primary data store;

identifying candidate queries to request against a materialized view;

determining to store query data derived from the candidate queries as either shared data or independent data; and

storing the shared data in the shared materialized view store for shared materialized views.

12. The computer system of claim 11 , further comprising:

creating the mapping table for the shared data; and

storing the mapping table in the shared materialized view store.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2021
From: JIANG, PENG HUI; SU, JUN; REN, YAN LIN; LI, ZHANG; ZHOU, HONG QING
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 056862/0578 →
Continuity (1)
Related Publication 20230021006A1 · Jan 19, 2023