High-performance general name query and replacement method based on configuration driving

Through configuration-driven methods and optimized query algorithms, combined with local caching technology, the problem of low performance of traditional methods in large-scale data processing is solved, and an efficient and easy-to-use common name query and replacement solution is achieved.

CN119441272APending Publication Date: 2025-02-14BEIJING BAIJU YIXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411484180.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Traditional common name query and replacement methods have poor performance when processing large-scale data sets and cannot meet the requirements of real-time and accuracy, resulting in system performance degradation and poor user experience.

Method used

Using a configuration-driven method, we collect users' specific query and replacement requirements, define query and replacement rules, analyze rules to generate corresponding logic, and use optimized query algorithms and local cache to accelerate access to achieve high-performance query and replacement operations.

Benefits of technology

It significantly improves system performance and user experience, can quickly respond and process large-scale data, meet the requirements of real-time and accuracy, and adapt to different business scenarios and data types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441272A_ABST
    Figure CN119441272A_ABST
Patent Text Reader

Abstract

The invention relates to a configuration-driven high-performance general name query and replacement method, which relates to the technical field of big data, and comprises the following steps of: logging in through a graphical interface, creating a new configuration file, collecting specific query and replacement requirements of a user, including data types to be processed and application scenes, and defining query and replacement rules; after configuration file creation and rule definition are completed, a query result is previewed, test replacement operation is performed, defined query and replacement rules are analyzed, corresponding query and replacement logic is generated, data query and replacement are executed according to the analyzed rules and an optimized query algorithm, access is accelerated by using a local cache, and data query and replacement are completed. Actual data query and name replacement operations are executed through the analyzed query and replacement logic, and after the data query and name replacement operations are completed, a timed task is set to obtain configuration update and monitor name change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and more specifically, to a configuration-driven high-performance common name query and replacement method. Background Art

[0002] With the rapid development of information technology, data processing has become an indispensable part of many industries and fields. Especially in the context of big data and cloud computing, the scale and complexity of data are increasing, and the requirements for data processing technology are getting higher and higher. Common name query and replacement, as one of the important tasks of data processing, is widely used in many fields such as data cleaning, text mining, and information retrieval. However, traditional query and replacement methods often face performance bottlenecks when processing large-scale data sets and cannot meet the requirements of real-time and accuracy.

[0003] Traditional name query methods often face many challenges when faced with massive amounts of data. As the amount of data continues to increase, the analysis speed of traditional query methods becomes slow and time-consuming, resulting in a decline in system performance and affecting user experience. This situation is common in many industries, especially in the fields of finance, medical care, and e-commerce, where real-time processing and rapid response of data are crucial. When using the system, users expect to quickly obtain the information they need, but the inefficiency of traditional methods often frustrates users and may even lead to user churn.

[0004] In order to meet this challenge, the present invention proposes an innovative solution, which adopts a configuration-driven approach, optimizes query algorithms, and utilizes modern hardware resources, aiming to provide users with an efficient, easy-to-use, and scalable common name query and replacement solution. First, the configuration-driven approach enables the system to be flexibly configured according to the specific needs of users, and users can customize query rules according to different business scenarios and data types. This flexibility not only improves the adaptability of the system, but also enables users to better meet their own business needs.

[0005] This solution can not only significantly improve system performance and user experience, but also provide strong support for enterprises in data processing and business decision-making. As the amount of data continues to grow, adopting this innovative method will become the trend of future data processing, helping enterprises stay ahead in the fierce market competition. Summary of the invention

[0006] The present invention aims at the technical problems existing in the prior art and provides a high-performance common name query and replacement method based on configuration drive to solve the problems raised in the above background technology.

[0007] The technical solution of the present invention to solve the above technical problem is as follows: a high-performance common name query and replacement method based on configuration drive, specifically comprising the following steps:

[0008] Step 101: Collect the user's specific query and replacement requirements, and define query and replacement rules;

[0009] Step 102: parse the defined query and replacement rules, generate corresponding query and replacement logic, execute data query and replacement according to the parsed rules and optimized query algorithm, and use local cache to accelerate access;

[0010] Step 103: According to the query and replacement logic parsed in step 102, actual data query and name replacement operations are performed;

[0011] Step 104: After completing the data query and name replacement operations of step 103, set a scheduled task to obtain configuration updates and monitor name changes.

[0012] In a preferred embodiment, in step 101, the user's specific query and replacement requirements are collected, including the data types and application scenarios to be processed, and query and replacement rules are defined. The specific steps are as follows:

[0013] Step A1, create a configuration file: log in through the graphical interface, ensure identity authentication and permission control, and create a new configuration file to collect the user's specific query and replacement requirements;

[0014] Step A2, define query rules and replacement rules: the query rule is that the user inputs the query name and selects the data source, and sets the query conditions and screening criteria to accurately locate the target data; the replacement rule is that the user inputs the replacement name and sets the replacement mode to determine the scope and restriction conditions of the replacement operation;

[0015] Step A3, configuration preview and verification: After completing the creation of the configuration file and rule definition, preview the query results and perform a test replacement operation. After confirming the preview and test results, confirm the final query and replacement configuration, save the configuration file, and record the relevant configuration version information.

[0016] In a preferred embodiment, in the configuration preview and verification of step A3, after completing the creation of the configuration file and the rule definition, previewing the query results and performing a test replacement operation further includes the following steps:

[0017] Step A301, generate preview: according to the defined query rules, extract sample data from the selected data source, and display the preview results in a graphical interface, so that the user can check whether the query rules accurately locate the target data;

[0018] Step A302, simulated replacement: according to the defined replacement rules, simulated replacement is performed in the preview data, and the replaced data is displayed in the graphical interface, so that the user can check whether the replacement effect meets expectations.

[0019] In a preferred embodiment, in step 102, the defined query and replacement rules are parsed, corresponding query and replacement logic is generated, data query and replacement are performed according to the parsed rules and the optimized query algorithm, and access is accelerated using the local cache. The specific steps are as follows:

[0020] Step B1, rule parsing: reading the defined query and replacement rules from the saved configuration file. The query rule parsing is to parse the query name, data source, query condition and screening criteria input by the user; the replacement rule parsing is to parse the replacement name, replacement mode and its range and restriction conditions input by the user;

[0021] Step B2, logic generation: Generate corresponding query logic and replacement logic according to the parsing results, and apply query optimization algorithms to improve query efficiency and reduce execution time according to the data source type and query complexity, wherein the query logic is an SQL query statement, and the replacement logic includes how to match and replace target data;

[0022] Step B3, execute query and data replacement: retrieve data from the data source according to the generated query logic and the optimized query algorithm, store the query results in the local cache to speed up subsequent access, and the data replacement is to apply the generated replacement logic in the query results, perform the data replacement operation, and update the replaced data back to the data source.

[0023] In a preferred embodiment, in the query and data replacement performed in step B3, data is retrieved from the data source according to the generated query logic and the optimized query algorithm, and the query results are stored in the local cache to accelerate subsequent access. The data replacement is to apply the generated replacement logic in the query results, perform the data replacement operation, and update the replaced data back to the data source, further comprising the following steps:

[0024] Step B301, cache access: define cache strategy, including cache time, cache invalidation mechanism, and give priority to reading data from local cache when executing queries, reducing the frequency of access to data sources;

[0025] Step B302, update cache: after data replacement, update cache content to maintain data consistency, and verify whether the results of query and replacement operations meet expectations to ensure data accuracy.

[0026] In a preferred embodiment, in step 103, according to the query and replacement logic parsed in step 102, actual data query and name replacement operations are performed, and the specific steps are as follows:

[0027] Step C1, execute data query: load the parsed query and replacement logic from the cache, connect to the data source, use the generated query logic to execute the query in the data source, and extract the query results from the data source and cache them locally;

[0028] Step C2, application name replacement: load the query results into the processing environment, find the name to be replaced in the query results according to the parsed replacement logic, apply the replacement operation through the set replacement mode, confirm whether the replaced data meets the expectations, and store the replaced data for updating the data source, confirm that the update operation is successful and check the data consistency in the data source.

[0029] In a preferred embodiment, in step 104, after the query and replacement are completed, a scheduled task is set to obtain configuration updates and monitor name changes. The specific steps are as follows:

[0030] Step D1, set up scheduled tasks: according to user needs, set the frequency of scheduled tasks to every hour, and configure the execution content of scheduled tasks, including obtaining the latest configuration files and monitoring name changes. When the scheduled tasks are executed, connect to the data source, check the update time of the configuration files, determine whether there are any updates, and when the version is updated, download and parse the new configuration files, and update the query and replacement logic of the system;

[0031] Step D2, monitoring name changes: In the scheduled task, monitor the changes of name data, including addition, modification, and deletion, set monitoring rules, determine whether the name change meets the user's needs, and when the name of the trip is changed, record the change information and trigger the corresponding query and replacement operations as needed;

[0032] Step D3, Feedback and Notification: After the scheduled task is completed, a feedback notification is sent to the user to inform him of the configuration update and name change, and a summary of the execution results is provided, including the number of successful queries and replacements, and a list of changed names. Based on the execution results of the scheduled task and user feedback, the efficiency of queries and replacements is regularly evaluated, and the frequency and content of the scheduled task are adjusted to better meet user needs and system performance.

[0033] The beneficial effects of the present invention are: collecting users' specific query and replacement requirements, including the data types and application scenarios that need to be processed, and defining query and replacement rules, parsing the defined query and replacement rules, generating corresponding query and replacement logic, executing data query and replacement according to the parsed rules and optimized query algorithms, and using local cache to accelerate access, performing actual data query and name replacement operations through the parsed query and replacement logic, and setting a scheduled task to obtain configuration updates and monitor name changes after completing the data query and name replacement operations. The present invention combines high-performance query algorithms with local caches. The query algorithms achieve fast access and matching of data by building indexes and using hash table technology, while the local cache is used to store recent query results. When the same or similar data is queried again, the results can be directly obtained from the cache, avoiding repeated calculations and queries, and significantly improving query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0036] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0037] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0038] Example 1

[0039] This embodiment provides Figure 1 A configuration-driven high-performance common name query and replacement method is shown, which specifically includes the following steps:

[0040] Step 101: Collect the user's specific query and replacement requirements, and define query and replacement rules;

[0041] Step 102: parse the defined query and replacement rules, generate corresponding query and replacement logic, execute data query and replacement according to the parsed rules and optimized query algorithm, and use local cache to accelerate access;

[0042] Step 103: According to the query and replacement logic parsed in step 102, actual data query and name replacement operations are performed;

[0043] Step 104: After completing the data query and name replacement operations of step 103, set a scheduled task to obtain configuration updates and monitor name changes.

[0044] Preferably, in step 101, the user's specific query and replacement requirements are collected, including the data types and application scenarios to be processed, and query and replacement rules are defined. The specific steps are as follows:

[0045] Step A1, create a configuration file: log in through the graphical interface, ensure identity authentication and permission control, and create a new configuration file to collect the user's specific query and replacement requirements, which can improve the user experience and increase the user's trust and satisfaction with the system;

[0046] Step A2, define query rules and replacement rules: the query rule is that the user enters the query name and selects the data source, and sets the query conditions and screening criteria to accurately locate the target data; the replacement rule is that the user enters the replacement name and sets the replacement mode, determines the scope and restriction conditions of the replacement operation, and clear requirements collection and rule definition can reduce errors in the query and replacement process and reduce operational errors caused by misunderstandings;

[0047] Step A3, configuration preview and verification: After completing the creation of the configuration file and the rule definition, preview the query results and perform a test replacement operation. After confirming the preview and test results, confirm the final query and replacement configuration, save the configuration file, and record the relevant configuration version information, further including the following steps:

[0048] Step A301, generate preview: extract sample data from the selected data source according to the defined query rules, and display the preview results in a graphical interface, so that users can check whether the query rules accurately locate the target data.

[0049] Step A302, simulated replacement: according to the defined replacement rules, simulated replacement is performed in the preview data, and the replaced data is displayed in the graphical interface, so that the user can check whether the replacement effect meets expectations.

[0050] Preferably, in step 102, the defined query and replacement rules are parsed, corresponding query and replacement logic is generated, data query and replacement are performed according to the parsed rules and the optimized query algorithm, and access is accelerated using the local cache. The specific steps are as follows:

[0051] Step B1, rule parsing: Read the defined query and replacement rules from the saved configuration file. The parsed rules and logic can be adjusted and expanded according to different needs, so that the system can adapt to a variety of application scenarios and data types. The query rule parsing is to parse the query name, data source, query condition and screening criteria entered by the user; the replacement rule parsing is to parse the replacement name, replacement mode and its range and restriction conditions entered by the user;

[0052] Step B2, logic generation: Generate corresponding query logic and replacement logic according to the analysis results, and apply query optimization algorithm according to the data source type and query complexity to quickly locate and process the required data, significantly reduce query time, and improve system response speed, wherein the query logic is an SQL query statement, and the replacement logic includes how to match and replace target data;

[0053] Step B3, execute query and data replacement: retrieve data from the data source according to the generated query logic and the optimized query algorithm, store the query results in the local cache, and use the local cache mechanism to quickly access the results of recent queries, reduce repeated requests to the data source, and improve the overall access speed. The data replacement is to apply the generated replacement logic in the query results, perform the data replacement operation, and update the replaced data back to the data source, further including the following steps:

[0054] Step B301, cache access: define cache strategy, including cache time, cache invalidation mechanism, and give priority to reading data from local cache when executing queries, reducing the frequency of access to data sources;

[0055] Step B302, update cache: after data replacement, update cache content to maintain data consistency, and verify whether the results of query and replacement operations meet expectations to ensure data accuracy.

[0056] Preferably, in step 103, according to the query and replacement logic parsed in step 102, actual data query and name replacement operations are performed to ensure that the names used in the data are up-to-date and consistent, thereby reducing errors and confusion caused by inconsistencies. The specific steps are as follows:

[0057] Step C1, execute data query: load the parsed query and replacement logic from the cache, connect to the data source, use the generated query logic to execute the query in the data source, reduce the need for manual data processing, make data management more efficient and reliable, and extract the query results from the data source and cache them locally;

[0058] Step C2, application name replacement: load the query results into the processing environment, find the name to be replaced in the query results according to the parsed replacement logic, apply the replacement operation through the set replacement mode, confirm whether the replaced data meets the expectations, and store the replaced data for updating the data source, confirm that the update operation is successful and check the data consistency in the data source.

[0059] Preferably, in step 104, after the query and replacement are completed, a scheduled task is set to obtain configuration updates and monitor name changes, which can improve the flexibility and responsiveness of the system and provide guarantees for the accuracy and consistency of data processing. The specific steps are as follows:

[0060] Step D1, set up scheduled tasks: according to user needs, set the frequency of scheduled tasks to every hour, and configure the execution content of scheduled tasks, including obtaining the latest configuration files and monitoring name changes. When the scheduled tasks are executed, connect to the data source, check the update time of the configuration files, and determine whether there are any updates. When the version is updated, download and parse the new configuration files, and update the query and replacement logic of the system. Scheduled tasks can flexibly respond to new configurations and name changes, and quickly adapt to new business scenarios and needs;

[0061] Step D2, monitoring name changes: In the scheduled task, monitor the changes of name data, including addition, modification, and deletion, set monitoring rules, and determine whether the name change meets the user's needs. When the name of the trip is changed, record the change information and trigger the corresponding query and replacement operations as needed. By monitoring the name changes, it is possible to respond to changes in business needs in a timely manner, support real-time data processing and decision-making, and enhance business agility;

[0062] Step D3, Feedback and Notification: After the scheduled task is completed, a feedback notification is sent to the user to inform him of the configuration update and name change, and a summary of the execution results is provided, including the number of successful queries and replacements, and a list of changed names. Based on the execution results of the scheduled task and user feedback, the efficiency of queries and replacements is regularly evaluated, and the frequency and content of the scheduled task are adjusted to better meet user needs and system performance.

[0063] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0064] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0065] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0066] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0068] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0069] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A high-performance configuration-driven common name query and replacement method, characterized in that: The specific steps include: Step 101: Collect the user's specific query and replacement requirements, and define query and replacement rules; Step 102: parse the defined query and replacement rules, generate corresponding query and replacement logic, execute data query and replacement according to the parsed rules and optimized query algorithm, and use local cache to accelerate access; Step 103: According to the query and replacement logic parsed in step 102, actual data query and name replacement operations are performed; Step 104: After completing the data query and name replacement operations of step 103, set a scheduled task to obtain configuration updates and monitor name changes.

2. According to claim 1, a configuration-driven high-performance common name query and replacement method is characterized in that: In step 101, the user's specific query and replacement requirements are collected, and query and replacement rules are defined. The specific steps are as follows: Step A1, create a configuration file: log in through the graphical interface and create a new configuration file to collect the user's specific query and replacement requirements; Step A2, define query rules and replacement rules: the query rule is that the user inputs the query name and selects the data source, and sets the query conditions and screening criteria to accurately locate the target data; the replacement rule is that the user inputs the replacement name and sets the replacement mode to determine the scope and restriction conditions of the replacement operation; Step A3, configuration preview and verification: After completing the creation of the configuration file and rule definition, preview the query results and perform a test replacement operation. After confirming the preview and test results, confirm the final query and replacement configuration, save the configuration file, and record the configuration version information.

3. A configuration-driven high-performance common name query and replacement method according to claim 2, characterized in that: In the configuration preview and verification of step A3, after completing the creation of the configuration file and the rule definition, the query results are previewed and the test replacement operation is performed, further comprising the following steps: Step A301, generate preview: extract sample data from the selected data source according to the defined query rules, and display the preview results in a graphical interface, so that the user can check whether the query rules locate the target data; Step A302, simulated replacement: according to the defined replacement rules, simulated replacement is performed in the preview data, and the replaced data is displayed in the graphical interface, so that the user can check whether the replacement effect meets expectations.

4. A configuration-driven high-performance common name query and replacement method according to claim 1, characterized in that: In step 102, the defined query and replacement rules are parsed, corresponding query and replacement logic is generated, data query and replacement are performed according to the parsed rules and optimized query algorithm, and access is accelerated using local cache. The specific steps are as follows: Step B1, rule parsing: reading the defined query and replacement rules from the saved configuration file. The query rule parsing is to parse the query name, data source, query condition and screening criteria input by the user; the replacement rule parsing is to parse the replacement name, replacement mode and its range and restriction conditions input by the user; Step B2, logic generation: Generate corresponding query logic and replacement logic according to the analysis results, and apply query optimization algorithms to improve query efficiency according to the data source type and query complexity; Step B3, execute query and data replacement: retrieve data from the data source according to the generated query logic and the optimized query algorithm, and store the query results in the local cache. The data replacement is to apply the generated replacement logic in the query results, perform the data replacement operation, and update the replaced data back to the data source.

5. A configuration-driven high-performance common name query and replacement method according to claim 1, characterized in that: In step 103, according to the query and replacement logic parsed in step 102, actual data query and name replacement operations are performed, and the specific steps are as follows: Step C1, execute data query: load the parsed query and replacement logic from the cache, connect to the data source, use the generated query logic to execute the query in the data source, obtain the query results and cache them locally; Step C2, application name replacement: load the query results into the processing environment, find the name to be replaced in the query results according to the parsed replacement logic, apply the replacement operation through the set replacement mode, confirm whether the replaced data meets expectations, and store the replaced data for updating the data source.

6. A configuration-driven high-performance common name query and replacement method according to claim 1, characterized in that: In step 104, after the query and replacement are completed, a scheduled task is set to obtain configuration updates and monitor name changes. The specific steps are as follows: Step D1, set up scheduled tasks: according to user needs, set the frequency of scheduled tasks to every hour, and configure the execution content of scheduled tasks, including obtaining the latest configuration files and monitoring name changes. When the scheduled tasks are executed, connect to the data source, check the update time of the configuration files, determine whether there are any updates, and when the version is updated, download and parse the new configuration files, and update the query and replacement logic of the system; Step D2, monitoring name changes: In the scheduled task, monitor the changes of name data, including addition, modification, and deletion, set monitoring rules, determine whether the name change meets the user's needs, and when the name of the trip is changed, record the change information and trigger the corresponding query and replacement operations as needed; Step D3, Feedback and Notification: After the scheduled task is completed, a feedback notification is sent to the user to inform him of the configuration update and name change, and a summary of the execution results is provided, including the number of successful queries and replacements, and a list of changed names. Based on the execution results of the scheduled task and user feedback, the efficiency of queries and replacements is regularly evaluated, and the frequency and content of the scheduled task are adjusted to better meet user needs and system performance.