CN116431201A - Method and device for configuring graph index, storage medium and computer equipment - Google Patents

Method and device for configuring graph index, storage medium and computer equipment Download PDF

Info

Publication number
CN116431201A
CN116431201A CN202310424233.3A CN202310424233A CN116431201A CN 116431201 A CN116431201 A CN 116431201A CN 202310424233 A CN202310424233 A CN 202310424233A CN 116431201 A CN116431201 A CN 116431201A
Authority
CN
China
Prior art keywords
graph
index
configuration
query statement
indexes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310424233.3A
Other languages
Chinese (zh)
Inventor
谢胜锋
魏炜
董玉香
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An International Financial Leasing Co Ltd
Original Assignee
Ping An International Financial Leasing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Financial Leasing Co Ltd filed Critical Ping An International Financial Leasing Co Ltd
Priority to CN202310424233.3A priority Critical patent/CN116431201A/en
Publication of CN116431201A publication Critical patent/CN116431201A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of computers and discloses a method, a device, a storage medium and computer equipment for configuring graph indexes, wherein the method comprises the steps of firstly receiving a graph index feeding request sent by a service system, acquiring a plurality of graph indexes and configuration data of each graph index, secondly adding the configuration data into a computing power configuration page in response to a computing power configuration instruction, generating target calculation logic of the graph indexes, then executing parallel calculation operation on all target calculation logic to obtain configuration results of all the graph indexes, finally generating the graph index configuration results of the graph index feeding request based on the configuration results of all the graph indexes, and returning the graph index configuration results to the service system. The method realizes the collocation and multithread parallel computation of the graph index development, effectively reduces the development threshold and the development cost of the graph index, improves the development efficiency, realizes the rapid deployment of the graph index, and meets the business requirement in time.

Description

Method and device for configuring graph index, storage medium and computer equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for configuring a graph index, a storage medium, and a computer device.
Background
The Nebula gallery is an open-source, distributed, easily-expandable protogram database capable of carrying hundreds of billions of points and hundreds of trillion edges of graph indexes and providing millisecond-level query services. Along with the wide application and popularization of the technology such as Nebula gallery and the like in the financial wind control industry, and the intelligent decision system in the related industry depends on a large number of graph indexes, the development efficiency and the calculation performance requirements on the graph indexes are higher and higher.
In the prior art, the development of the traditional graph indexes is required to be hard-coded, the graph indexes are scattered in different application systems, and cannot be uniformly calculated, so that the development period of the graph indexes is long, the development efficiency is low, and the service requirements are difficult to quickly respond.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, a storage medium, and a computer device for configuring a graph index, which mainly aims to solve the technical problem in the prior art that development period is long and development efficiency is low due to hard coding required for developing the graph index.
According to a first aspect of the present invention, there is provided a method for configuring a graph index, the method comprising:
receiving a picture index feeding request sent by a service system, and acquiring a plurality of picture indexes and configuration data of each picture index based on the picture index feeding request;
responding to a calculation force configuration instruction, displaying a calculation force configuration page, adding configuration data of the graph index into the calculation force configuration page, and generating target calculation logic of the graph index;
acquiring target calculation logic of each graph index, and executing parallel calculation operation on all the target calculation logic to obtain configuration results of all the graph indexes;
and generating a graph index configuration result of the graph index feeding request based on the configuration results of all the graph indexes, and returning the graph index configuration result of the graph index feeding request to the service system.
According to a second aspect of the present invention, there is provided a device for configuring a graph index, the device comprising:
the data acquisition module is used for receiving a picture index feeding request sent by the service system and acquiring a plurality of picture indexes and configuration data of each picture index based on the picture index feeding request;
the computing power configuration module is used for responding to a computing power configuration instruction, displaying a computing power configuration page, adding configuration data of the graph index into the computing power configuration page and generating target computing logic of the graph index;
the result acquisition module is used for acquiring target calculation logic of each graph index and executing parallel calculation operation on all the target calculation logic to obtain configuration results of all the graph indexes;
and the result feedback module is used for generating a graph index configuration result of the graph index feeding request based on the configuration results of all the graph indexes and returning the graph index configuration result of the graph index feeding request to the service system.
According to a third aspect of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method of configuring graph indicators.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method of configuring the graph index as described above when executing the program.
The invention provides a configuration method, a device, a storage medium and computer equipment of graph indexes, which are characterized in that firstly, a graph index feeding request sent by a service system is received, a plurality of graph indexes and configuration data of each graph index are acquired based on the graph index feeding request, secondly, a computing power configuration page is displayed in response to a computing power configuration instruction, the configuration data of the graph indexes are added into the computing power configuration page, target calculation logic of the graph indexes is generated, then the target calculation logic of each graph index is acquired, parallel calculation operation is carried out on all the target calculation logic, configuration results of all the graph indexes are obtained, finally, the graph index configuration results of the graph index feeding request are generated based on the configuration results of all the graph indexes, and the graph index configuration results are returned to the service system. The method is characterized in that the graph index and the corresponding configuration data in the feed request are acquired based on the graph index feed request, and the data configuration is carried out in the calculation power configuration page to generate the target calculation logic of the graph index, so that the configuration of the graph index development process is realized, and the development cost is effectively reduced; the multi-thread parallel computing mode is adopted for the target computing logics, so that the development threshold is reduced and the development efficiency is improved on the basis of ensuring the development performance of the graph indexes; and directly returning the graph index configuration result corresponding to the graph index package request sent by the service system to the service system, so that the rapid deployment of the graph index is realized, and the service requirement can be met in time. The method realizes the collocation and multithread parallel computation of the graph index development, effectively reduces the development threshold and the development cost of the graph index, improves the development efficiency, realizes the rapid deployment of the graph index, and meets the business requirement in time.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a schematic flow chart of a method for configuring graph indexes according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for configuring a graph index according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a calculation force configuration page in a configuration method of graph indexes according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an attribute configuration item in a basic attribute configuration area in a configuration method of a graph index according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a graph index calculation distribution diagram in a graph of a graph index configuration method according to an embodiment of the present invention;
fig. 6 is a schematic diagram of early warning information in a method for configuring a graph index according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a configuration device of graph indexes according to an embodiment of the present invention;
fig. 8 shows a schematic device structure of a computer device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the application provides a method for configuring graph indexes, as shown in fig. 1, the method comprises the following steps:
101. and receiving a graph index feeding request sent by the service system, and acquiring a plurality of graph indexes and configuration data of each graph index based on the graph index feeding request.
Firstly, introducing an application scene suitable for the method, wherein the Nebula graph library is used as an open-source, distributed and easily-expanded original graph database, can bear graph indexes of hundreds of billions of points and hundreds of trillion edges, and provides millisecond-level query service. Along with the wide application and popularization of the technology such as Nebula gallery and the like in more industries and the dependence of an intelligent decision system on a large number of graph indexes, the development efficiency and the calculation performance requirements on the graph indexes are gradually improved. The development of the traditional graph indexes needs hard coding, and the graph indexes are scattered in different application systems, so that a plurality of graph indexes cannot be uniformly calculated, the development period of the graph indexes is long, the development efficiency is low, and the service requirements are difficult to quickly respond.
Specifically, the request for the incoming part refers to a request for submitting the ready or pending data and data to a next receiving system or processing system, and the incoming part usually carries the target scene data. In particular, in an application scenario of the present application, a request for a part sent by a service system includes a plurality of graph indexes to be configured, and configuration data carried in each graph index, so that a subsequent system processes the graph indexes based on the configuration data. And the graph index is a complex data structure capable of specifically reflecting the correspondence relationship between a plurality of basic units.
The method for configuring the graph indexes comprises the steps of firstly, directly interfacing with a service system through a uniform resource interface, obtaining a feeding request of the graph indexes in the service system stably and efficiently, obtaining the graph indexes to be configured and configuration data carried by each graph index to be configured based on the feeding request of the graph indexes, realizing a uniform data receiving interface, avoiding the decentralized processing of the graph indexes to be configured, enabling the obtaining of the data to be processed to be direct, efficient and centralized, and effectively improving the efficiency of obtaining and configuring a plurality of graph indexes.
102. And responding to the computing power configuration instruction, displaying a computing power configuration page, adding configuration data of the graph index into the computing power configuration page, and generating target computing logic of the graph index.
In particular, hard coding refers to the development practice of software that embeds data directly into the source code of a program or other executable object, replacing the variable with a fixed value, and thus requiring modification by editing the source code and recompiling the executable file. And unlike the development mode of hard coding, soft coding can decouple data from source codes, so that query languages are separated from bottom codes, developers can directly write the exposed query languages, and the soft coding adopts a configuration mode, so that the coding mode is more flexible, and corresponding expansion and modification are easier.
In the embodiment of the application, unlike the development mode of hard coding for graph indexes in the prior art, the method adopts a soft coding configuration mode for configuring and developing the graph indexes, firstly, a computing power configuration page is displayed in response to a computing power configuration instruction of a developer, and then configuration data corresponding to the acquired graph indexes are added to the computing power configuration page for configuration so as to generate graph index calculation logic, and the calculation logic of the graph indexes can be used for carrying out statistical calculation on business events within a certain time range so as to complete development, configuration and processing of the graph indexes, and the whole process can realize rapid writing, modification and expansion of the graph index calculation logic.
103. And obtaining target calculation logic of each graph index, and executing parallel calculation operation on all the target calculation logic to obtain configuration results of all the graph indexes.
Specifically, parallel computing refers to a process of simultaneously adopting multiple computing resources to solve a computing problem, and can effectively improve the computing speed and processing capacity of a computer system. Multiple processors are typically employed to cooperatively solve the same computational problem, decomposing the computational problem to be solved into several portions, each portion being separately processed by an independent processor for parallel computation. The system capable of parallel computing may be implemented by a specially designed supercomputer containing multiple processors, or by a cluster of individual computers interconnected in some fashion.
In the embodiment of the application, after the target calculation logic of each graph index is obtained, a multithreading parallel calculation technology is adopted for the plurality of target calculation logics, so that the plurality of target calculation logics are calculated synchronously in time, the target calculation logics of each graph index synchronously start to calculate at the same time, the calculation process is completed in a close time, and further, the calculation results of the target calculation logics of all graph indexes can be directly obtained in a certain shorter time, and the configuration results of all graph indexes are obtained. The processing target calculation logic adopting the parallel calculation mode for multithreading can effectively reduce the development threshold on the basis of ensuring the stable development performance of the graph indexes, so that developers do not need to continuously pay attention to the whole development system and flow for a long time, and the development efficiency is greatly improved.
104. And generating a graph index configuration result of the graph index feeding request based on the configuration results of all the graph indexes, and returning the graph index configuration result of the graph index feeding request to the service system.
In the embodiment of the application, the map index feed request includes a plurality of map indexes to be configured, configuration results of all map indexes are obtained after the configuration process of each map index is completed, and the configuration results of all map indexes are integrated, so that the obtained results are map index configuration results corresponding to the map index feed request. Similarly, based on the same acquisition mode as the graph index, after the graph index configuration result corresponding to the graph index feeding request is acquired, the graph index configuration result is directly returned to the service system through the unified data receiving interface again, the configured graph index is directly deployed on the service system without publishing, the thermal deployment of the graph index is realized, and the requirements of the service system can be timely met.
The invention provides a configuration method, a device, a storage medium and computer equipment of graph indexes, which are characterized in that firstly, a graph index feeding request sent by a service system is received, a plurality of graph indexes and configuration data of each graph index are acquired based on the graph index feeding request, secondly, a computing power configuration page is displayed in response to a computing power configuration instruction, the configuration data of the graph indexes are added into the computing power configuration page, target calculation logic of the graph indexes is generated, then the target calculation logic of each graph index is acquired, parallel calculation operation is carried out on all the target calculation logic, configuration results of all the graph indexes are obtained, finally, the graph index configuration results of the graph index feeding request are generated based on the configuration results of all the graph indexes, and the graph index configuration results are returned to the service system. The method is characterized in that the graph index and the corresponding configuration data in the feed request are acquired based on the graph index feed request, and the data configuration is carried out in the calculation power configuration page to generate the target calculation logic of the graph index, so that the configuration of the graph index development process is realized, and the development cost is effectively reduced; the multi-thread parallel computing mode is adopted for the target computing logics, so that the development threshold is reduced and the development efficiency is improved on the basis of ensuring the development performance of the graph indexes; and directly returning the graph index configuration result corresponding to the graph index package request sent by the service system to the service system, so that the rapid deployment of the graph index is realized, and the service requirement can be met in time. The method realizes the collocation and multithread parallel computation of the graph index development, effectively reduces the development threshold and the development cost of the graph index, improves the development efficiency, realizes the rapid deployment of the graph index, and meets the business requirement in time.
The embodiment of the application provides a method for configuring graph indexes, as shown in fig. 2, the method comprises the following steps:
201. and acquiring a plurality of graph indexes and configuration data of each graph index based on the graph index entry request sent by the service system.
In this embodiment of the present application, by directly interfacing with the service system, the map index to be configured in the map index feed request and the configuration data corresponding to each map index are directly obtained based on the map index feed request sent by the service system, and the implementation based on this step is consistent with step 101, which is not repeated herein.
202. And adding the basic attribute of the graph index into the corresponding attribute configuration item in the basic attribute configuration area to generate basic attribute information of the graph index.
In this embodiment of the present application, as shown in fig. 3, a plurality of attribute configuration items including a gallery, a result type, a connection timeout, a maximum retry number, a read timeout, a write timeout, an enable buffer, and an expiration time are included in a basic attribute configuration area, and a basic attribute of a graph index is added to a corresponding attribute configuration item, where each attribute configuration item specifically includes a name, a type, a necessity, a default value, an example, and an explanation corresponding to the attribute configuration item, as shown in fig. 4, after the basic attribute of the graph index is added to the corresponding attribute configuration item, basic attribute information of the graph index is generated in the basic attribute configuration area, so that a developer can modify the basic attribute information according to development requirements at any time, and development is simple and convenient, and efficiency is high.
203. When the cache is enabled, presetting query sentences in a preset storage space and adding the query sentences into a query sentence editing area.
Specifically, the cache enabling information in the graph index basic attribute is obtained, when the cache enabling information indicates that the cache is enabled, a preset query statement can be obtained in a preset storage space, and the preset query statement is added to the query statement editing area as a graph database query statement.
In this embodiment of the present application, as shown in fig. 3, when the enabling buffer entry is yes, the buffer is checked in the preset storage space, and the preset query statement is directly obtained in the preset storage space, without the developer repeatedly editing the query statement, the obtained preset query statement is directly added to the query statement editing area, so that the efficiency of development and editing is improved.
204. When the cache is not started, the query statement of the graph database is tested in the query statement test area, so that the correctness of the query statement is ensured.
Specifically, firstly, acquiring a graph database query statement, and adding the graph database query statement into a query statement test area; and then executing the graph database query statement in the query statement test area to obtain a test result of the graph database query statement, finally obtaining a preset query result of the graph database query statement, comparing the test result with the preset query result to obtain a comparison result, adding the graph database query statement into the query statement editing area when the comparison result indicates that the test result is consistent with the preset query result, generating error information based on the database query statement when the comparison result indicates that the test result is inconsistent with the preset query result, and returning the error information to the service system.
In the present embodiment, the graph database query statement is GQL (graphical query language), similar to SQL (structured query language), for retrieving data entities from a scalable database. After the graph database query statement is obtained, the graph index development auxiliary tool is used, specifically, the graph index development auxiliary tool can be Nebula Studio to test the correctness of the graph database query statement, specifically, the graph database query statement can be executed in a query statement test area in a calculation configuration page, whether the test result is correct or not is judged according to a preset query result, if the test result is correct, the graph database query statement is added into a query statement editing area to carry out next development, if the test result is incorrect, error information is directly generated, and the error information is returned to a service system, so that a developer can find problems in time to process, and development efficiency is improved.
205. And adding the graph database query statement to the query statement editing area, and generating target calculation logic of the graph index based on the basic attribute information and the graph database query statement.
In the embodiment of the application, in the computing power configuration page, basic attribute information of the graph index is generated in a basic attribute configuration area, a graph database query statement is filled in a query statement editing area, and target calculation logic of the graph index is generated based on the basic attribute information and the graph database query statement so as to be used for calculating the target calculation logic later.
Further, after the graph database query statement is stored in the preset storage space, firstly traversing the graph database query statement in the preset storage space to obtain the storage time of the graph database query statement, then obtaining the current time, and differencing the current time and the storage time to obtain the storage time of the graph database query statement, finally judging the storage time based on the cache expiration time, and if the storage time is greater than or equal to the cache expiration time, moving the graph database query statement out of the preset storage space.
In the embodiment of the application, after editing the graph database query statement, the graph database query statement is stored in a preset storage space for subsequent use, wherein the basic attribute information comprises the cache expiration time of the graph database query statement in the preset storage space, the storage time of the graph database query statement in the preset storage space is obtained by calculating the current time and the storage time of the graph database query statement, and judgment is performed based on the cache expiration time, if the storage time is greater than or equal to the cache expiration time, the graph database query statement is moved out of the preset storage space, so that the graph database query statement in the preset storage space is updated in time, and errors caused by using the database query statement stored for a long time are avoided.
206. And executing parallel computing operation on all target computing logics to obtain configuration results of all graph indexes, and performing distinguishing judgment on the configuration results.
Specifically, a graph index calculation distribution diagram is generated firstly based on parallel calculation operation, wherein the graph index calculation distribution diagram comprises actual calculation time of each target calculation logic, then preset calculation time corresponding to the target graph index calculation logic is obtained, the actual calculation time of each target calculation logic is compared based on the preset calculation time, when the actual calculation time of the target calculation logic is larger than the preset calculation time, the graph index corresponding to the target calculation logic is marked as an abnormal index, and the configuration result of the abnormal index is marked as abnormal.
In this embodiment of the present application, when all target calculation logics perform parallel calculation, a graph index calculation distribution diagram is synchronously generated, where the graph index calculation distribution diagram is shown in fig. 5, a time coordinate is set on the graph index calculation distribution diagram, and the graph index calculation distribution diagram is used to intuitively reflect actual calculation times of all target calculation logics of the graph indexes, then obtain preset calculation times corresponding to all the graph index calculation logics, directly fill all the preset calculation times into the graph index calculation distribution diagram, and similarly, compare the actual calculation times of each target calculation logic one by one based on the preset calculation times, mark the actual calculation times of the target calculation logics exceeding the preset calculation times in the graph index calculation distribution diagram, and mark the graph index corresponding to the abnormal index as the abnormal configuration result. For the graph index feeding request sent by the service system, a large number of graph indexes exist, and the calculation speeds of different graph indexes are different, so that the graph indexes with long calculation time and slow calculation can be directly found out in a mode of generating a graph index calculation distribution map, a developer can conveniently and quickly position the graph indexes with slow calculation speeds, timely modification is facilitated, and development efficiency is improved.
207. And returning the graph index configuration result and the early warning information generated based on the abnormal graph index configuration result to the service system.
Specifically, the configuration results of all the graph indexes are traversed firstly, when the configuration results of the graph indexes are abnormal, the graph indexes and the configuration data of the graph indexes are obtained, then the early warning information is generated based on the graph indexes, the configuration data of the graph indexes and the configuration results of the graph indexes, and the early warning information is returned to the service system.
In the embodiment of the application, after parallel computation is completed on all target computing logic, traversing the obtained configuration results of all graph indexes, wherein the configuration results of the graph indexes comprise normal configuration results and abnormal configuration results, integrating all the normal configuration results, namely, the configuration results of the graph indexes of the graph index feeding request after integration, and directly returning to a service system, so that quick deployment of the graph indexes is realized, and service requirements are quickly met. When the configuration result of the graph index is abnormal, the graph index performance index is specifically classified into a graph index performance index difference and a calculation result abnormality, the graph index performance index difference is reflected in the target calculation logic speed of the corresponding graph index, configuration data and configuration result of the corresponding graph index are obtained for the configuration result of the abnormal graph index, early warning information is generated based on the configuration result, the early warning information is returned to a service system in various forms, a developer is reminded of paying attention to the abnormal configuration result in time, the early warning information can be fed back in the form of mail, the mail form is shown in fig. 6, the mail contains feature codes, index names, owners, starting time, total calculation time consumption, state codes and error information of the abnormal graph index, and meanwhile, the mail also comprises the advance details of the graph index advance request, including message feature codes, scenes, starting time and time consumption details. The method and the system can perform early warning on graph indexes with poor performance and graph indexes with abnormal configuration results in real time, perfects a monitoring early warning system, enables developers to discover graph index operation faults in time, and adopts coping strategies to quickly respond to on-line problems.
The invention provides a method, a device, a storage medium and computer equipment for configuring graph indexes, which are characterized in that firstly, a plurality of graph indexes and configuration data of each graph index are acquired based on a graph index package request sent by a service system, then basic attributes of the graph indexes are added into corresponding attribute configuration items in a basic attribute configuration area to generate basic attribute information of the graph indexes, when caching is enabled, query sentences are preset in a preset storage space and added into a query sentence editing area, when caching is not enabled, query sentences of a graph database are tested in a query sentence test area to ensure correctness, then the query sentences of the graph database are added into the query sentence editing area, and a target calculation logic of the graph indexes is generated based on the basic attribute information and the query sentences of the graph database, and then, parallel calculation operation is carried out on all the target calculation logic to obtain configuration results of all the graph indexes, distinguishing judgment is carried out on the configuration results, and finally, the graph index configuration results and early warning information generated based on the configuration results of the abnormal graph indexes are returned to the service system. The method realizes on-line configuration and collocation of graph index development, reduces development cost, ensures graph index development performance by adopting a multithreading parallel computing technology, improves graph index development operation efficiency, simultaneously develops graph indexes to rapidly deploy long lines, meets service requirements in time, further improves monitoring and early warning, finds graph index operation faults in time and responds to on-line problems rapidly.
Further, as a specific implementation of the method of fig. 1, an embodiment of the present application provides a device for configuring a graph index, as shown in fig. 7, where the device includes: a data acquisition module 301, a calculation force configuration module 302, a result acquisition module 303 and a result feedback module 304.
The data acquisition module 301 may be configured to receive a graph index feeding request sent by the service system, and acquire a plurality of graph indexes and configuration data of each graph index based on the graph index feeding request;
the computing power configuration module 302 is configured to respond to the computing power configuration instruction, display a computing power configuration page, add configuration data of the graph index to the computing power configuration page, and generate target computing logic of the graph index;
the result obtaining module 303 may be configured to obtain target calculation logic of each graph index, and perform parallel calculation operation on all the target calculation logic to obtain configuration results of all the graph indexes;
the result feedback module 304 may be configured to generate a graph index configuration result of the graph index package request based on the configuration results of all the graph indexes, and return the graph index configuration result of the graph index package request to the service system.
In a specific application scenario, the computing power configuration module 302 is specifically configured to add the basic attribute of the graph index to the corresponding attribute configuration item in the basic attribute configuration area, so as to generate basic attribute information of the graph index; adding the query statement of the graph database into a query statement editing area, and storing the query statement of the graph database into a preset storage space; in the computing power configuration page, target computing logic of the graph index is generated based on the basic attribute information and the graph database query statement.
In a specific application scenario, the computing power configuration module 302 may be further configured to obtain cache enabling information in the basic attribute of the graph index; when the cache enabling information indicates that the cache is enabled, a preset query statement is obtained in a preset storage space, and the preset query statement is added to a query statement editing area as a graph database query statement.
In a specific application scenario, the computing power configuration module 302 may be further configured to obtain a graph database query statement, and add the graph database query statement to the query statement test area; executing the query statement of the graph database in the query statement test area to obtain a test result of the query statement of the graph database; obtaining a preset query result of a query statement of the graph database, and comparing the test result with the preset query result to obtain a comparison result; when the comparison result indicates that the test result is consistent with the preset query result, adding the query statement of the graph database into the query statement editing area; when the comparison result indicates that the test result is inconsistent with the preset query result, generating error information based on the database query statement, and returning the error information to the service system.
In a specific application scenario, the computing power configuration module 302 may be further configured to traverse the graph database query statement in the preset storage space to obtain a storage time of the graph database query statement; obtaining the current time, and making a difference between the current time and the stored time to obtain the stored time of the query statement of the graph database; judging the storage time based on the cache expiration time, and if the storage time is greater than or equal to the cache expiration time, moving the query statement of the graph database out of the preset storage space.
In a specific application scenario, the result obtaining module 303 is specifically configured to generate a graph index calculation distribution map based on the parallel calculation operation, where the graph index calculation distribution map includes an actual calculation time of each target calculation logic; acquiring preset calculation time corresponding to target graph index calculation logic, and comparing the actual calculation time of each target calculation logic based on the preset calculation time; when the actual calculation time of the target calculation logic is longer than the preset calculation time, marking the graph index corresponding to the target calculation logic as an abnormal index, and marking the configuration result of the abnormal index as an abnormality.
In a specific application scenario, the result feedback module 304 may be specifically configured to traverse configuration results of all graph indexes, and when the configuration result of the graph indexes is abnormal, obtain the graph indexes and configuration data of the graph indexes; generating early warning information based on the graph index, the configuration result of the graph index and the configuration result of the graph index, and returning the early warning information to the service system.
It should be noted that, other corresponding descriptions of each functional unit related to the configuration device of the graph index provided in the embodiment may refer to corresponding descriptions in fig. 1 and fig. 2, and are not described herein again.
Based on the above method as shown in fig. 1, correspondingly, the present embodiment further provides a storage medium, on which a computer program is stored, which when executed by a processor, implements the method for configuring the graph index.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, where the software product to be identified may be stored in a nonvolatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.), and includes several instructions to cause a computer device (may be a personal computer, a server, or a network device, etc.) to execute the configuration method of each implementation scenario map index of the present application.
Based on the method shown in fig. 1 and fig. 2 and the embodiment of the graph index configuration apparatus shown in fig. 7, in order to achieve the above object, as shown in fig. 8, this embodiment further provides an entity device for configuring the graph index, where the device includes a communication bus, a processor, a memory, a communication interface, and may further include an input/output interface and a display device, where each functional unit may complete communication with each other through the bus. The memory stores a computer program and a processor for executing the program stored in the memory to execute the method for configuring the graph index in the above embodiment.
Optionally, the physical device may further include a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, and the like. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
It will be appreciated by those skilled in the art that the configuration entity device structure of one graph index provided in this embodiment is not limited to the entity device, and may include more or fewer components, or some components may be combined, or different component arrangements.
The storage medium may also include an operating system, a network communication module. The operating system is a program for managing the entity equipment hardware and the software resources to be identified, and supports the operation of the information processing program and other software and/or programs to be identified. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. By applying the technical scheme, firstly, a graph index feeding request sent by a service system is received, a plurality of graph indexes and configuration data of each graph index are obtained based on the graph index feeding request, secondly, a computing power configuration page is displayed in response to a computing power configuration instruction, the configuration data of the graph indexes are added into the computing power configuration page to generate target calculation logic of the graph indexes, then the target calculation logic of each graph index is obtained, parallel calculation operation is performed on all the target calculation logic to obtain configuration results of all the graph indexes, finally, the graph index configuration results of the graph index feeding request are generated based on the configuration results of all the graph indexes, and the graph index configuration results are returned to the service system. The method is characterized in that the graph index and the corresponding configuration data in the feed request are acquired based on the graph index feed request, and the data configuration is carried out in the calculation power configuration page to generate the target calculation logic of the graph index, so that the configuration of the graph index development process is realized, and the development cost is effectively reduced; the multi-thread parallel computing mode is adopted for the target computing logics, so that the development threshold is reduced and the development efficiency is improved on the basis of ensuring the development performance of the graph indexes; and directly returning the graph index configuration result corresponding to the graph index package request sent by the service system to the service system, so that the rapid deployment of the graph index is realized, and the service requirement can be met in time. The method realizes the collocation and multithread parallel computation of the graph index development, effectively reduces the development threshold and the development cost of the graph index, improves the development efficiency, realizes the rapid deployment of the graph index, and meets the business requirement in time.
Those skilled in the art will appreciate that the drawings are merely schematic illustrations of one preferred implementation scenario, and that the modules or flows in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for description, and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely a few specific implementations of the present application, but the present application is not limited thereto and any variations that can be considered by a person skilled in the art shall fall within the protection scope of the present application.

Claims (10)

1. A method for configuring a graph index, the method comprising:
receiving a picture index feeding request sent by a service system, and acquiring a plurality of picture indexes and configuration data of each picture index based on the picture index feeding request;
responding to a calculation force configuration instruction, displaying a calculation force configuration page, adding configuration data of the graph index into the calculation force configuration page, and generating target calculation logic of the graph index;
acquiring target calculation logic of each graph index, and executing parallel calculation operation on all the target calculation logic to obtain configuration results of all the graph indexes;
and generating a graph index configuration result of the graph index feeding request based on the configuration results of all the graph indexes, and returning the graph index configuration result of the graph index feeding request to the service system.
2. The method of claim 1, wherein the configuration data of the graph metrics includes graph metric base attributes and graph database query statements, and the computing power configuration page includes a base attribute configuration area and a query statement editing area; the adding the configuration data of the graph index to the computing power configuration page to generate target computing logic of the graph index comprises the following steps:
adding the basic attribute of the map index to a corresponding attribute configuration item in the basic attribute configuration area to generate basic attribute information of the map index;
adding the query statement of the graph database into the query statement editing area, and storing the query statement of the graph database into a preset storage space;
and generating target calculation logic of the graph index based on the basic attribute information and the graph database query statement in the calculation force configuration page.
3. The method of claim 2, wherein the graph index base attribute includes cache enable information; after the adding the basic attribute of the graph index to the corresponding attribute configuration item in the basic attribute configuration area to generate the basic attribute information of the graph index, the method further comprises:
acquiring the cache enabling information in the graph index basic attribute;
when the cache enabling information indicates that the cache is enabled, a preset query statement is obtained in a preset storage space, and the preset query statement is used as the query statement of the graph database and added to the query statement editing area.
4. The method of claim 2, wherein the computing power configuration page further comprises a query statement test area; before said adding the graph database query statement to the query statement editing region, the method further comprises:
acquiring the query statement of the graph database, and adding the query statement of the graph database into the query statement test area;
executing the query statement of the graph database in the query statement test area to obtain a test result of the query statement of the graph database;
obtaining a preset query result of the query statement of the graph database, and comparing the test result with the preset query result to obtain a comparison result;
when the comparison result indicates that the test result is consistent with the preset query result, adding the query statement of the graph database into the query statement editing area;
and when the comparison result indicates that the test result is inconsistent with the preset query result, generating error information based on the database query statement, and returning the error information to the service system.
5. The method of claim 2, wherein the base attribute information comprises a cache expiration time; after the graph database query statement is stored in the preset storage space, the method further comprises:
traversing the graph database query statement in the preset storage space to obtain the storage time of the graph database query statement;
obtaining the current time, and differencing the current time and the stored time to obtain the storage time of the query statement of the graph database;
and judging the storage time based on the cache expiration time, and if the storage time is greater than or equal to the cache expiration time, moving the graph database query statement out of the preset storage space.
6. The method of claim 1, wherein the obtaining the target computing logic of each graph indicator and performing parallel computing operations on all the target computing logic to obtain configuration results of all the graph indicators comprises:
generating a graph index calculation profile based on the parallel calculation operations, wherein the graph index calculation profile includes an actual calculation time for each of the target calculation logics;
acquiring preset calculation time corresponding to the target graph index calculation logic, and comparing the actual calculation time of each target calculation logic based on the preset calculation time;
when the actual calculation time of the target calculation logic is longer than the preset calculation time, marking the graph index corresponding to the target calculation logic as an abnormal index, and marking the configuration result of the abnormal index as abnormal.
7. The method according to claim 1, wherein generating the graph index configuration result of the graph index feed request based on the configuration results of all the graph indexes, and returning the graph index configuration result of the graph index feed request to the service system, comprises:
traversing all the configuration results of the graph indexes, and acquiring the graph indexes and the configuration data of the graph indexes when the configuration results of the graph indexes are abnormal;
generating early warning information based on the graph index, the configuration result of the graph index and the configuration result of the graph index, and returning the early warning information to the service system.
8. A graph index configuration apparatus, characterized in that the apparatus comprises:
the data acquisition module is used for receiving a picture index feeding request sent by the service system and acquiring a plurality of picture indexes and configuration data of each picture index based on the picture index feeding request;
the computing power configuration module is used for responding to a computing power configuration instruction, displaying a computing power configuration page, adding configuration data of the graph index into the computing power configuration page and generating target computing logic of the graph index;
the result acquisition module is used for acquiring target calculation logic of each graph index and executing parallel calculation operation on all the target calculation logic to obtain configuration results of all the graph indexes;
and the result feedback module is used for generating a graph index configuration result of the graph index feeding request based on the configuration results of all the graph indexes and returning the graph index configuration result of the graph index feeding request to the service system.
9. A storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method of any of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program when executed by the processor implements the steps of the method according to any one of claims 1 to 7.
CN202310424233.3A 2023-04-19 2023-04-19 Method and device for configuring graph index, storage medium and computer equipment Pending CN116431201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310424233.3A CN116431201A (en) 2023-04-19 2023-04-19 Method and device for configuring graph index, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310424233.3A CN116431201A (en) 2023-04-19 2023-04-19 Method and device for configuring graph index, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN116431201A true CN116431201A (en) 2023-07-14

Family

ID=87090632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310424233.3A Pending CN116431201A (en) 2023-04-19 2023-04-19 Method and device for configuring graph index, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN116431201A (en)

Similar Documents

Publication Publication Date Title
US20180260621A1 (en) Picture recognition method and apparatus, computer device and computer- readable medium
US9274782B2 (en) Automated computer application update analysis
EP3161610B1 (en) Optimized browser rendering process
US9514184B2 (en) Systems and methods for a high speed query infrastructure
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN115599359A (en) Code generation method, device, equipment and medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN114064079A (en) Packing method and device of algorithm application element, equipment and storage medium
CN114647548A (en) Log generation method and device
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN116431201A (en) Method and device for configuring graph index, storage medium and computer equipment
CN116257226A (en) Data verification method and device, electronic equipment and storage medium
CN107766228B (en) Multi-language-based automatic testing method and device
CN110321435B (en) Data source dividing method, device, equipment and storage medium
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN109902067B (en) File processing method and device, storage medium and computer equipment
CN109857838B (en) Method and apparatus for generating information
CN110750569A (en) Data extraction method, device, equipment and storage medium
US9471569B1 (en) Integrating information sources to create context-specific documents
CN111737784A (en) Board card type selection configuration method and device based on digital three-dimensional ZXMP S385 subframe
CN116136813B (en) Method, device and storage medium for simulating adaptive multi-model avionics signals
US11960823B1 (en) Missing glyph replacement system
US20230306280A1 (en) Systems and methods for reducing problematic correlations between features from machine learning model data
CN111309623B (en) Coordinate class data classification test method and device
US20230316604A1 (en) Reuse of infographics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination