Real-time database cross-database SQL interaction method and system
A database and cross-database technology, which is applied in the directions of database update, data processing application, structured data retrieval, etc., can solve the problems of complex data organization and low efficiency of separate access to multiple databases, so as to improve operating efficiency and quickly cross multiple real-time databases. Database joint query, the effect of improving the overall performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] This embodiment introduces a real-time database cross-database SQL interaction method, including:
[0064] Obtain and update metadata information of multiple real-time databases at set time intervals;
[0065] In response to external SQL access requests, parse the SQL access requests to obtain all SQL operations and the real-time databases involved;
[0066] According to the real-time database involved in the SQL operation, the SQL operation is divided into single-database SQL execution sequences corresponding to a single real-time database respectively;
[0067] Execute the SQL operations in the corresponding single-database SQL execution sequence to each real-time database involved, and obtain SQL execution result data;
[0068] Based on the SQL execution result data, according to the current metadata information of the corresponding real-time database, construct a result data set including execution result information of all SQL operations;
[0069] Return the resu...
Embodiment 1-1
[0071] This embodiment specifically introduces an implementation manner of Embodiment 1.
[0072] On the basis of embodiment 1, in this embodiment:
[0073] The metadata information includes the table structure of the real-time database, the domain data type, and the relationship between tables.
[0074] The method of the present invention mainly involves the following contents:
[0075] 1. Real-time database cross-database metadata management
[0076] In order to realize cross-database metadata management, the method needs to construct a real-time database list, and determine the data update flag of each real-time database in the real-time database list according to the metadata update result and update time of each real-time database.
[0077] This embodiment obtains and updates the metadata information of multiple real-time databases including:
[0078] Query the data update flags of each real-time database in the real-time database list, and link the real-time database ...
Embodiment 2
[0165] This example introduces the real-time database cross-database SQL interaction system, refer to figure 1 shown, the system includes:
[0166] (Cross-database) metadata management module, configured to obtain and update metadata information of multiple real-time databases at set time intervals;
[0167] The SQL engine module is configured to respond to external SQL access requests, parse the SQL access requests, obtain all SQL operations and the real-time databases involved, and then divide the SQL operations into separate SQL operations according to the real-time databases involved in the SQL operations. A single-database SQL execution sequence corresponding to a single real-time database;
[0168] The single-database SQL execution scheduling module (single-database SQL execution scheduler) is configured to execute SQL operations in the corresponding single-database SQL execution sequence for each real-time database involved, obtain SQL execution result data, and return...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap