Database query optimization method and system and storage medium

By extracting and combining user information and query hub words in the database, performing hub master query, identity combined with subquery and event combined with subquery, and combining historical correlation scaling, the problem of scattered database query results in the existing technology is solved, and professionalism is realized , active optimization and diversified query results display.

CN118885503AActive Publication Date: 2024-11-01SHENZHEN HEXINCHENG TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410850561.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing database query methods cannot be professional and proactively optimized based on user identity and work events, resulting in scattered query results and cannot meet the user's data usage needs.

Method used

By receiving query request information, extracting query hub words, performing hub master query, identity combination subquery and event combination subquery, obtaining corresponding query information, and performing historical association scaling to generate a result display interface.

Benefits of technology

It realizes professional and proactive optimization of database queries, and diversified query results, which facilitates users to quickly find the required information and meet users' actual usage needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885503A_ABST
    Figure CN118885503A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of query optimization, and particularly discloses a database query optimization method and system and a storage medium. The method comprises the following steps: receiving query request information, obtaining user information, and extracting a plurality of query hub words; performing hub main query to obtain hub query information; generating a plurality of query identity words, and performing identity combination sub-query to obtain identity query information; generating a plurality of query event words, and performing event combination sub-query to obtain event query information; and performing historical association zooming, and generating and displaying a result display interface. Hub main query, identity combination sub-query and event combination sub-query can be carried out, hub query information, identity query information and event query information are obtained respectively, historical association scaling is carried out, a result display interface is generated, professional and active optimization of database query is achieved, query results are diversified, and the query efficiency is improved. A user can conveniently and quickly find a required query result, and the actual use requirement of the user is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of query optimization, and in particular relates to a database query optimization method and system, and a storage medium. Background Art

[0002] A database is a warehouse that organizes, stores, and manages data according to data structures. It is a collection of large amounts of data that is stored in a computer for a long time, organized, shareable, and uniformly managed. Relational databases use structured query languages ​​to query databases.

[0003] In the prior art, there is only one way to query the database, and it is impossible to perform more professional and proactive database query optimization based on user identity and work events, resulting in the query results being often scattered and failing to meet user data usage needs. Users are also required to select the required data from a large amount of data, which is inconvenient for actual user use. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a database query optimization method and system, and a storage medium, aiming to solve the problems raised in the background technology.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions: A database query optimization method, the method specifically comprising the following steps: Receive query request information, obtain user information, perform key identification analysis, and extract multiple query keywords from the query request information; Based on the plurality of query keywords, a hub main query is performed in a preset target database to obtain hub query information; Combining the user information and the plurality of query keywords to generate a plurality of query identity words, performing identity combined sub-queries in the target database to obtain identity query information; Combining the user information and the multiple query keywords to generate multiple query event words, performing event combination sub-queries in the target database to obtain event query information; Perform historical correlation scaling on the hub query information, the identity query information, and the event query information, and generate and display a result display interface.

[0006] As a further limitation of the technical solution of the embodiment of the present invention, the receiving of query request information, obtaining user information, performing key identification analysis, and extracting multiple query keywords from the query request information specifically include the following steps: Receive query request operation and build query request window; Receiving the user's query request information through the query request window; Obtain the request address of the query request information and obtain user information; Perform key identification analysis on the query request information to extract multiple query keywords.

[0007] As a further limitation of the technical solution of the embodiment of the present invention, the step of integrating the user information and the multiple query keywords to generate multiple query identity words, performing identity combined sub-queries in the target database, and obtaining identity query information specifically includes the following steps: generating a plurality of key identity words according to the user information; Using the user information, identity screening and marking are performed on the plurality of query keywords to obtain a plurality of screening identity words; Combining the plurality of key identity words and the plurality of screening identity words, and marking to obtain a plurality of query identity words; Based on the multiple query identity words, an identity combination sub-query is performed in the target database to obtain identity query information.

[0008] As a further limitation of the technical solution of the embodiment of the present invention, the step of integrating the user information and the multiple query keywords to generate multiple query event words, performing event combination sub-queries in the target database, and obtaining event query information specifically includes the following steps: generating a plurality of key event words according to the user information; Using the user information, event screening and marking are performed on the plurality of query keywords to obtain a plurality of screening event words; Combining the plurality of key event words and the plurality of screening event words, and marking to obtain a plurality of query event words; Based on the multiple query event words, an event combination sub-query is performed in the target database to obtain event query information.

[0009] As a further limitation of the technical solution of the embodiment of the present invention, generating a plurality of key event words according to the user information specifically includes the following steps: Acquiring event planning information according to the user information; A plurality of key event words are generated according to the event planning information.

[0010] As a further limitation of the technical solution of the embodiment of the present invention, the performing of historical correlation scaling on the hub query information, the identity query information and the event query information, and generating and displaying a result display interface specifically comprises the following steps: Get historical query record information; Analyze the historical query record information to obtain the classified usage ratio; According to the classification usage ratio, historical correlation scaling is performed on the hub query information, the identity query information, and the event query information to generate a result display interface; The result display interface is displayed.

[0011] A database query optimization system, the system comprising a query request processing unit, a hub main query unit, an identity combination sub-query unit, an event combination sub-query unit and a history association scaling unit, wherein: A query request processing unit, used to receive query request information, obtain user information, perform key identification analysis, and extract multiple query keywords from the query request information; A hub main query unit, used to perform a hub main query in a preset target database based on a plurality of query hub words to obtain hub query information; An identity-combined sub-query unit, used to combine the user information and the plurality of query keywords to generate a plurality of query identity words, perform identity-combined sub-queries in the target database, and obtain identity query information; An event combination sub-query unit, used to combine the user information and the plurality of query keywords to generate a plurality of query event words, perform event combination sub-queries in the target database, and obtain event query information; The history correlation scaling unit is used to perform history correlation scaling on the hub query information, the identity query information and the event query information, and generate and display a result display interface.

[0012] As a further limitation of the technical solution of the embodiment of the present invention, the query request processing unit specifically includes: An operation receiving module, used for receiving a query request operation and constructing a query request window; An information receiving module, used for receiving the user's query request information through the query request window; An information acquisition module is used to obtain the request address of the query request information and obtain user information; The key recognition module is used to perform key recognition analysis on the query request information and extract multiple query keywords.

[0013] As a further limitation of the technical solution of the embodiment of the present invention, the history association scaling unit specifically includes: History acquisition module, used to obtain historical query record information; A ratio analysis module, used to analyze the historical query record information to obtain the classification usage ratio; An interface generation module, used to perform historical correlation scaling on the hub query information, the identity query information, and the event query information according to the classification usage ratio, and generate a result display interface; The interface display module is used to display the result display interface.

[0014] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the database query optimization method as described above.

[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. The present invention can perform hub main query, identity combined sub-query and event combined sub-query, respectively obtain hub query information, identity query information and event query information, realize professional and active optimization of database query, diversify query results, and facilitate users to quickly find the required query results, meeting the actual use needs of users; 2. The present invention can perform historical correlation scaling on hub query information, identity query information and event query information, generate and display a result display interface, which not only makes it convenient for users to browse and use query results according to their habits, but also can display different query information at the same time, so that users can quickly find suitable query results for use. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0017] Figure 1 A flow chart of a method provided by an embodiment of the present invention is shown.

[0018] Figure 2 A flow chart of query request information reception and processing in the method provided by an embodiment of the present invention is shown.

[0019] Figure 3 A flow chart of performing identity-combined subquery in the method provided by an embodiment of the present invention is shown.

[0020] Figure 4 A flow chart of performing event combination sub-query in the method provided by an embodiment of the present invention is shown.

[0021] Figure 5 A flow chart of generating multiple key event words in the method provided by an embodiment of the present invention is shown.

[0022] Figure 6 A flow chart of generating a result display interface in the method provided in an embodiment of the present invention is shown.

[0023] Figure 7The application architecture diagram of the system provided by the embodiment of the present invention is shown.

[0024] Figure 8 The structure block diagram of the query request processing unit in the system provided by the embodiment of the present invention is shown.

[0025] Fig. 9 A structural block diagram of a history correlation scaling unit in a system provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0027] It is understandable that in the prior art, there is only one way to query the database, and it is impossible to perform more professional and proactive database query optimization based on user identity and work events, resulting in the query results being often scattered and not meeting the user's data usage needs. The user is also required to select the required data from a large amount of data, which is inconvenient for the user's actual use.

[0028] To solve the above problems, the embodiment of the present invention receives query request information, obtains user information, performs key identification analysis, extracts multiple query keywords from the query request information; based on multiple query keywords, performs a hub main query in a preset target database to obtain hub query information; integrates user information and multiple query keywords to generate multiple query identity words, performs identity combined sub-queries in the target database to obtain identity query information; integrates user information and multiple query keywords to generate multiple query event words, performs event combined sub-queries in the target database to obtain event query information; performs historical correlation scaling on the hub query information, identity query information and event query information, generates and displays a result display interface. It is possible to perform a hub main query, an identity combined sub-query and an event combined sub-query, respectively obtain hub query information, identity query information and event query information, perform historical correlation scaling, generate a result display interface, realize professional and active optimization of database queries, diversify query results, facilitate users to quickly find the required query results, and meet the actual use needs of users.

[0029] Figure 1 A flow chart of a method provided by an embodiment of the present invention is shown.

[0030] Specifically, in a preferred embodiment of the present invention, a database query optimization method is provided, and the method specifically comprises the following steps: Step S101, receiving query request information, obtaining user information, performing key recognition analysis, and extracting multiple query keywords from the query request information.

[0031] In an embodiment of the present invention, when a user is designing and making tooling accessories for a camera, if there is a need for query, a query request operation can be performed. By receiving the user's query request operation, a query request window is constructed and displayed. The user can enter query request information in the query request window, thereby obtaining the query request information through the query request window, and then performing content analysis on the query request information to identify modal particles, punctuation marks, verbs, personal nouns, etc. in the query request information, and then remove the modal particles, punctuation marks, verbs, personal nouns, etc. in the query request information, and then extract multiple query keywords from the remaining query request information. At the same time, by analyzing the request address of the query request information, the corresponding request ID is determined, and then the user information is obtained.

[0032] For example, if the query request information entered by the user in the query request window is "I need a 3D image of camera A", then "I", "need" and "ah" in "I need a 3D image of camera A" are removed, and the query keywords "camera A" and "3D image" are extracted.

[0033] Specifically, Figure 2 A flow chart of query request information reception and processing in the method provided by an embodiment of the present invention is shown.

[0034] Among them, in the preferred embodiment provided by the present invention, the receiving of query request information, obtaining user information, performing key identification analysis, and extracting multiple query keywords from the query request information specifically include the following steps: Step S1011, receiving a query request operation and constructing a query request window.

[0035] Step S1012: receiving the user's query request information through the query request window.

[0036] Step S1013, obtaining the request address of the query request information and obtaining user information.

[0037] Step S1014: perform key identification analysis on the query request information to extract multiple query keywords.

[0038] Furthermore, the database query optimization method further includes the following steps: Step S102: Based on the plurality of query keywords, a hub main query is performed in a preset target database to obtain hub query information.

[0039] In the embodiment of the present invention, multiple query keywords are used as query index words, and index query is performed in a preset target database through the multiple query keywords to obtain hub query information.

[0040] For example, when performing an index query with "camera A" and "3D image", the obtained pivot query information is the 3D data of camera A and the 3D thumbnail of camera A.

[0041] Step S103, synthesizing the user information and the plurality of query keywords to generate a plurality of query identity words, performing identity-combined sub-queries in the target database, and acquiring identity query information.

[0042] In an embodiment of the present invention, the work identity of the user in the enterprise is determined based on user information, and multiple key identity words related to the work identity of the user are generated. According to the work identity of the user, identity screening is performed on multiple query hub words, and query hub words that are not related to the work identity of the user are eliminated. The retained multiple query hub words are marked as screening identity words, and then the multiple key identity words and the multiple screening identity words are combined and marked to obtain multiple query identity words, and then the multiple query identity words are used as query index words. In a preset target database, an identity-combined index query is performed through multiple query identity words to obtain identity query information.

[0043] For example: if the user's work identity in the enterprise is "tooling and auxiliary tools design engineer", then the multiple key identity words are "tooling" and "auxiliary tools". Since the query hub words "A camera" and "three-dimensional image" do not need to be filtered, the multiple filtered identity words are "A camera" and "three-dimensional image". At this time, the multiple query identity words with comprehensive markings can be "tooling", "auxiliary tools", "A camera" and "three-dimensional image"; the identity query information obtained can be the three-dimensional data of camera A, the three-dimensional thumbnail of camera A, the three-dimensional data of multiple tooling and auxiliary tools of camera A, and the three-dimensional thumbnail of multiple tooling and auxiliary tools of camera A.

[0044] Specifically, Figure 3 A flow chart of performing identity-combined subquery in the method provided by an embodiment of the present invention is shown.

[0045] Among them, in the preferred implementation mode provided by the present invention, the user information and the plurality of query keywords are integrated to generate a plurality of query identity keywords, and identity combined sub-queries are performed in the target database to obtain identity query information, which specifically includes the following steps: Step S1031, generating a plurality of key identity words according to the user information.

[0046] Step S1032: using the user information, perform identity screening and tagging on the plurality of query keywords to obtain a plurality of screened identity keywords.

[0047] Step S1033, combining the plurality of key identity words and the plurality of screening identity words, and marking to obtain a plurality of query identity words.

[0048] Step S1034: Based on the multiple query identity words, perform identity combination sub-query in the target database to obtain identity query information.

[0049] Furthermore, the database query optimization method further includes the following steps: Step S104, synthesizing the user information and the plurality of query keywords to generate a plurality of query event words, performing event combination sub-queries in the target database to obtain event query information.

[0050] In an embodiment of the present invention, based on user information, the user's event planning information is obtained from the enterprise's work planning information, and then based on the event planning information, a plurality of corresponding key event words are generated, and according to the user's event planning information, event screening is performed on a plurality of query hub words, query hub words irrelevant to the user's event planning are eliminated, and the retained plurality of query hub words are marked as screening event words, and then a plurality of key event words and a plurality of screening event words are combined and marked to obtain a plurality of query event words, and then a plurality of query event words are used as query index words, and in a preset target database, an event-combined index query is performed through a plurality of query event words to obtain event query information.

[0051] For example: the user's event planning information is "conduct module consistency tooling design on XX month XX day", then the multiple key event words are "module" and "consistency tooling", and since the query hub words "A camera" and "three-dimensional image" do not need to be filtered, the multiple filtered event words are "A camera" and "three-dimensional image". At this time, the multiple query event words that are comprehensively marked are "module", "consistency tooling", "A camera" and "three-dimensional image"; the event query information obtained can be the three-dimensional data of the A camera module, the three-dimensional thumbnail of the A camera module, the three-dimensional data of the module consistency tooling of the A camera, and the three-dimensional thumbnail of the module consistency tooling of the A camera.

[0052] Specifically, Figure 4 A flow chart of performing event combination sub-query in the method provided by an embodiment of the present invention is shown.

[0053] Among them, in the preferred embodiment provided by the present invention, the said integrating the said user information and the said multiple query key words, generating multiple query event words, performing event combination sub-query in the target database, and obtaining event query information specifically comprises the following steps: Step S1041, generating a plurality of key event words according to the user information.

[0054] Specifically, Figure 5 A flow chart of generating multiple key event words in the method provided by an embodiment of the present invention is shown.

[0055] Among them, in the preferred implementation manner provided by the present invention, generating a plurality of key event words according to the user information specifically comprises the following steps: Step S10411, obtaining event planning information according to the user information.

[0056] Step S10412: Generate multiple key event words according to the event planning information.

[0057] Furthermore, the step of integrating the user information and the plurality of query keywords to generate a plurality of query event words, performing event combination sub-queries in the target database, and obtaining event query information further comprises the following steps: Step S1042: event screening and marking are performed on the plurality of query keywords through the user information to obtain a plurality of screened event keywords.

[0058] Step S1043, combining the plurality of key event words and the plurality of screening event words, and marking to obtain a plurality of query event words.

[0059] Step S1044: Based on the multiple query event words, an event combination sub-query is performed in the target database to obtain event query information.

[0060] Furthermore, the database query optimization method further includes the following steps: Step S105 , performing historical correlation scaling on the hub query information, the identity query information, and the event query information, and generating and displaying a result display interface.

[0061] In an embodiment of the present invention, historical query record information of the user is obtained according to user information, and by analyzing the historical query record information, the browsing time of the user on the hub query information, identity query information and event query information respectively during the historical query process is obtained, and the three different browsing times are compared to generate a classification usage ratio, and then according to the classification usage ratio, in a preset standard interface, the interface display size of the currently obtained hub query information, identity query information and event query information is scaled and adjusted to generate a result display interface, and then in the result display interface, the currently obtained hub query information, identity query information and event query information are displayed.

[0062] It can be understood that in the preset standard interface, the hub query information is displayed on the left, the identity query information is displayed in the middle, and the event query information is displayed on the right. The interface display size of the hub query information, identity query information and event query information is scaled and adjusted according to the classification usage ratio. The larger the proportion of information in the classification usage ratio, the larger the interface display size, and the smaller the proportion of information in the classification usage ratio, the smaller the interface display size.

[0063] Specifically, Figure 6 A flow chart of generating a result display interface in the method provided in an embodiment of the present invention is shown.

[0064] Among them, in the preferred implementation manner provided by the present invention, the performing of historical correlation scaling on the hub query information, the identity query information and the event query information, and generating and displaying a result display interface specifically comprises the following steps: Step S1051, obtaining historical query record information.

[0065] Step S1052: Analyze the historical query record information to obtain the classification usage ratio.

[0066] Step S1053 , performing historical correlation scaling on the hub query information, the identity query information, and the event query information according to the classification usage ratio, and generating a result display interface.

[0067] Step S1054, displaying the result display interface.

[0068] Furthermore, Figure 7 The application architecture diagram of the system provided by the embodiment of the present invention is shown.

[0069] In another preferred embodiment of the present invention, a database query optimization system includes: The query request processing unit 101 is used to receive query request information, obtain user information, perform key recognition analysis, and extract multiple query keywords from the query request information.

[0070] In an embodiment of the present invention, when a user is designing and making tooling accessories for a camera, if there is a need for query, a query request operation can be performed. The query request processing unit 101 constructs and displays a query request window by receiving the user's query request operation. The user can enter query request information in the query request window, thereby obtaining the query request information through the query request window, and then performing content analysis on the query request information to identify modal particles, punctuation marks, verbs, personal nouns, etc. in the query request information, and then remove the modal particles, punctuation marks, verbs, personal nouns, etc. in the query request information, and then extract multiple query keywords from the remaining query request information. At the same time, by analyzing the request address of the query request information, the corresponding request ID is determined to obtain user information.

[0071] Specifically, Figure 8 It shows a structural block diagram of the query request processing unit 101 in the system provided by the embodiment of the present invention.

[0072] In a preferred embodiment of the present invention, the query request processing unit 101 specifically includes: The operation receiving module 1011 is used to receive a query request operation and construct a query request window.

[0073] The information receiving module 1012 is used to receive the user's query request information through the query request window.

[0074] The information acquisition module 1013 is used to obtain the request address of the query request information and obtain user information.

[0075] The key identification module 1014 is used to perform key identification analysis on the query request information and extract multiple query keywords.

[0076] Furthermore, the database query optimization system also includes: The hub main query unit 102 is used to perform a hub main query in a preset target database based on the multiple query hub words to obtain hub query information.

[0077] In the embodiment of the present invention, the hub main query unit 102 uses a plurality of query hub words as query index words, performs index query through the plurality of query hub words in a preset target database, and obtains hub query information.

[0078] The identity combination sub-query unit 103 is used to integrate the user information and the multiple query keywords to generate multiple query identity words, perform identity combination sub-query in the target database, and obtain identity query information.

[0079] In an embodiment of the present invention, the identity-combining sub-query unit 103 determines the user's work identity in the enterprise based on the user information, generates multiple key identity words related to the user's work identity, and performs identity screening on multiple query hub words according to the user's work identity, removes query hub words that are not related to the user's work identity, marks the retained multiple query hub words as screened identity words, and then combines multiple key identity words and multiple screened identity words to obtain multiple query identity words, and then uses multiple query identity words as query index words, and performs identity-combined index query through multiple query identity words in a preset target database to obtain identity query information.

[0080] The event combination sub-query unit 104 is used to integrate the user information and the multiple query keywords to generate multiple query event words, perform event combination sub-query in the target database, and obtain event query information.

[0081] In an embodiment of the present invention, the event combination sub-query unit 104 obtains the user's event planning information from the enterprise's work planning information based on the user information, and then generates multiple corresponding key event words based on the event planning information, and performs event screening on multiple query keywords according to the user's event planning information, removes query keywords that are not related to the user's event planning, and marks the retained multiple query keywords as screening event words, and then combines multiple key event words and multiple screening event words to mark them to obtain multiple query event words, and then uses multiple query event words as query index words, and in a preset target database, performs event-combined index query through multiple query event words to obtain event query information.

[0082] The history correlation scaling unit 105 is used to perform history correlation scaling on the hub query information, the identity query information and the event query information, and generate and display a result display interface.

[0083] In an embodiment of the present invention, the historical association zoom unit 105 obtains the user's historical query record information according to the user information, and obtains the browsing time of the user on the hub query information, identity query information and event query information respectively during the historical query process by analyzing the historical query record information, and compares the three different browsing times to generate a classification usage ratio, and then according to the classification usage ratio, in a preset standard interface, the interface display size of the currently obtained hub query information, identity query information and event query information is scaled and adjusted to generate a result display interface, and then in the result display interface, the currently obtained hub query information, identity query information and event query information are displayed.

[0084] Specifically, Fig. 9It shows a structural block diagram of the history association scaling unit 105 in the system provided by an embodiment of the present invention.

[0085] In a preferred embodiment of the present invention, the history association scaling unit 105 specifically includes: The history acquisition module 1051 is used to acquire historical query record information.

[0086] The ratio analysis module 1052 is used to analyze the historical query record information to obtain the classification usage ratio.

[0087] The interface generation module 1053 is used to perform historical correlation scaling on the hub query information, the identity query information and the event query information according to the classification usage ratio, and generate a result display interface.

[0088] The interface display module 1054 is used to display the result display interface.

[0089] Furthermore, in another preferred embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps: Receive query request information, obtain user information, perform key identification analysis, and extract multiple query keywords from the query request information; Based on the plurality of query keywords, a hub main query is performed in a preset target database to obtain hub query information; Combining the user information and the plurality of query keywords to generate a plurality of query identity words, performing identity combined sub-queries in the target database to obtain identity query information; Combining the user information and the multiple query keywords to generate multiple query event words, performing event combination sub-queries in the target database to obtain event query information; Perform historical correlation scaling on the hub query information, the identity query information, and the event query information, and generate and display a result display interface.

[0090] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A database query optimization method, characterized in that: The method specifically comprises the following steps: Receive query request information, obtain user information, perform key identification analysis, and extract multiple query keywords from the query request information; Based on the plurality of query keywords, a hub main query is performed in a preset target database to obtain hub query information; Combining the user information and the plurality of query keywords to generate a plurality of query identity words, performing identity combined sub-queries in the target database to obtain identity query information; Combining the user information and the multiple query keywords to generate multiple query event words, performing event combination sub-queries in the target database to obtain event query information; Perform historical correlation scaling on the hub query information, the identity query information, and the event query information, and generate and display a result display interface.

2. The database query optimization method according to claim 1, characterized in that: The receiving of query request information, obtaining user information, performing key identification analysis, and extracting multiple query keywords from the query request information specifically includes the following steps: Receive query request operation and build query request window; Receiving the user's query request information through the query request window; Obtain the request address of the query request information and obtain user information; Perform key identification analysis on the query request information to extract multiple query keywords.

3. The database query optimization method according to claim 1, characterized in that: The step of synthesizing the user information and the plurality of query keywords to generate a plurality of query identity words, performing identity combination sub-queries in the target database, and obtaining identity query information specifically comprises the following steps: generating a plurality of key identity words according to the user information; Using the user information, identity screening and marking are performed on the plurality of query keywords to obtain a plurality of screening identity words; Combining the plurality of key identity words and the plurality of screening identity words, and marking to obtain a plurality of query identity words; Based on the multiple query identity words, an identity combination sub-query is performed in the target database to obtain identity query information.

4. The database query optimization method according to claim 1, characterized in that: The step of synthesizing the user information and the plurality of query keywords to generate a plurality of query event words, performing event combination sub-queries in the target database, and obtaining event query information specifically comprises the following steps: generating a plurality of key event words according to the user information; Using the user information, event screening and marking are performed on the plurality of query keywords to obtain a plurality of screening event words; Combining the plurality of key event words and the plurality of screening event words, and marking to obtain a plurality of query event words; Based on the multiple query event words, an event combination sub-query is performed in the target database to obtain event query information.

5. The database query optimization method according to claim 4, characterized in that: The step of generating a plurality of key event words according to the user information specifically comprises the following steps: Acquiring event planning information according to the user information; A plurality of key event words are generated according to the event planning information.

6. The database query optimization method according to claim 1, characterized in that: The performing historical correlation scaling on the hub query information, the identity query information, and the event query information, and generating and displaying a result display interface specifically comprises the following steps: Get historical query record information; Analyze the historical query record information to obtain the classified usage ratio; According to the classification usage ratio, historical correlation scaling is performed on the hub query information, the identity query information, and the event query information to generate a result display interface; The result display interface is displayed.

7. A database query optimization system, characterized in that: The system includes a query request processing unit, a hub main query unit, an identity combination sub-query unit, an event combination sub-query unit and a history association scaling unit, wherein: A query request processing unit, used to receive query request information, obtain user information, perform key identification analysis, and extract multiple query keywords from the query request information; A hub main query unit, used to perform a hub main query in a preset target database based on a plurality of query hub words to obtain hub query information; An identity-combined sub-query unit, used to combine the user information and the plurality of query keywords to generate a plurality of query identity words, perform identity-combined sub-queries in the target database, and obtain identity query information; An event combination sub-query unit, used to combine the user information and the plurality of query keywords to generate a plurality of query event words, perform event combination sub-queries in the target database, and obtain event query information; The history correlation scaling unit is used to perform history correlation scaling on the hub query information, the identity query information and the event query information, and generate and display a result display interface.

8. The database query optimization system according to claim 7, characterized in that: The query request processing unit specifically includes: An operation receiving module, used for receiving a query request operation and constructing a query request window; An information receiving module, used for receiving the user's query request information through the query request window; An information acquisition module is used to obtain the request address of the query request information and obtain user information; The key recognition module is used to perform key recognition analysis on the query request information and extract multiple query keywords.

9. The database query optimization system according to claim 7, characterized in that: The history association scaling unit specifically includes: History acquisition module, used to obtain historical query record information; A ratio analysis module, used to analyze the historical query record information to obtain the classification usage ratio; An interface generation module, used to perform historical correlation scaling on the hub query information, the identity query information, and the event query information according to the classification usage ratio, and generate a result display interface; The interface display module is used to display the result display interface.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the database query optimization method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Search method and device used for mobile terminal, and mobile terminal

    CN106021449A

  • Query method and device

    CN106776708A

  • Retrieval method based on project life cycle, storage medium and electronic device

    CN110609959A

  • Order management method and device and storage medium

    CN115239244A

  • Dynamic graphical user interface and query logic SQL generator used for developing Web-based database applications

    US20050102284A1