CN113239047A - Database allocation method, service processing method, device and equipment - Google Patents

Database allocation method, service processing method, device and equipment Download PDF

Info

Publication number
CN113239047A
CN113239047A CN202110564933.3A CN202110564933A CN113239047A CN 113239047 A CN113239047 A CN 113239047A CN 202110564933 A CN202110564933 A CN 202110564933A CN 113239047 A CN113239047 A CN 113239047A
Authority
CN
China
Prior art keywords
target object
sub
library
target
data
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
CN202110564933.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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110564933.3A priority Critical patent/CN113239047A/en
Publication of CN113239047A publication Critical patent/CN113239047A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the specification provides a database allocation method, a service processing method, a device and equipment, which can be applied to the technical field of big data. The method comprises the following steps: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage; determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data; configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object. By the method, the data of different objects are subjected to database processing, and the data can be respectively utilized in the subsequent process, so that the accurate and effective processing of corresponding services is ensured.

Description

Database allocation method, service processing method, device and equipment
Technical Field
The embodiment of the specification relates to the technical field of big data, in particular to a database allocation method, a service processing method, a device and equipment.
Background
With the progress and development of society, different industries and different objects generate a large amount of data, and certain relevance exists among the industries and the objects. For example, in the process of applying the supply chain industry, data of different industries need to be integrated, so that data interaction between different industries in the supply chain can be realized more conveniently. Therefore, the access requests of different industries or objects are met, the interaction among the different industries or objects is facilitated, and the processing of the service in the subsequent process is facilitated.
However, because these industries and objects often have different data storage requirements, and each industry and object includes different sub-objects, a more complex data storage manner is correspondingly extended. When storing these different data, if the data cannot be isolated according to the corresponding format, confusion between the data is easily caused, thereby disturbing the actual application situation of the data. Therefore, how to perform isolated storage on corresponding data based on the actual data storage requirements of different objects under the condition of meeting the data access requirements of the objects is a problem which needs to be solved urgently at present.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a method for configuring a database, a method for processing a service, a device for processing a service, and an apparatus, so as to solve a problem of how to perform isolated storage on corresponding data according to storage requirements of different objects.
To solve the foregoing technical problem, an embodiment of the present specification provides a library allocation method, including: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage; determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data; configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
An embodiment of the present specification further provides a library allocation configuration device, including: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage; determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data; configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
The embodiment of the present specification further provides a library allocation device, which includes a memory and a processor; the memory to store computer program instructions; the processor to execute the computer program instructions to implement the steps of: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage; determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data; configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
In order to solve the above technical problem, an embodiment of the present specification further provides a service processing method, including: receiving an object calling service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library; generating sub-library information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data; and sending the branch library information to the service initiating terminal so that the service initiating terminal searches target object data based on the branch library information and completes the processing of the object calling service by using the target object data.
An embodiment of this specification further provides a service processing apparatus, including: the object calling service receiving module is used for receiving the object calling service sent by the service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library; the database dividing information generating module is used for generating database dividing information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data; and the database information sending module is used for sending the database information to the service initiating terminal so that the service initiating terminal searches target object data based on the database information and completes the processing of the object calling service by using the target object data.
The embodiment of the present specification further provides a service processing device, which includes a memory and a processor; the memory to store computer program instructions; the processor for executing the computer program to implement the steps of: receiving an object calling service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library; generating sub-library information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data; and sending the branch library information to the service initiating terminal so that the service initiating terminal searches target object data based on the branch library information and completes the processing of the object calling service by using the target object data.
As can be seen from the technical solutions provided in the embodiments of the present specification, by the above-mentioned method for configuring a sub-library, in the presence of a sub-library configuration request, target object information included in the request may be acquired, and then a requirement of the target object for data storage is determined, so that a sub-library type is determined according to the target object information, and a corresponding setting of the target sub-library is realized, and thus data of the target object can be stored based on the requirement of the target object. The method adapts to the requirement of different target objects for storing data when the data of the target objects are stored, and simultaneously realizes effective isolation when the data of the different target objects are stored, thereby avoiding the situation of data confusion of the different target objects and being beneficial to calling the data of the different target objects for business processing at the later stage.
By the service processing method, when the service is processed, if the service needs to call the data of the corresponding target object, the service initiating end can send the corresponding object call service, and then the corresponding sub-library information is generated according to the target object data needing to be called, so that the sub-library in which the target object data is stored is represented. After the subbase information is obtained, the subbase information can be sent to the service initiating terminal, so that the service initiating terminal can position the subbase where the target object data is located according to the subbase information, and further obtain the target object data from the subbase to realize the processing of the corresponding service. By the method, when the data of different target objects are stored based on different types of sub-libraries, the data can be effectively called, and corresponding services are solved, so that the data of different types can be effectively called while being stored, and the services of different types can be effectively processed.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the specification, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating a method for configuring a database according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a service processing method according to an embodiment of the present disclosure;
FIG. 3 is a block diagram of a library allocation apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a service processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of a library allocation device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a service processing device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort shall fall within the protection scope of the present specification.
In order to solve the above technical problem, a method for configuring a library according to an embodiment of the present disclosure is first introduced. The execution main body of the sub-warehouse configuration method is sub-warehouse configuration equipment, and the sub-warehouse configuration equipment comprises but is not limited to a server, an industrial personal computer, a PC and the like. As shown in fig. 1, the method for configuring the sub-library may include the following specific implementation steps.
S110: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage.
The target object may correspond to corresponding target object data, and the sub-library configuration device is required to allocate a corresponding sub-library to the target object data to store the target object data. The target object may have a requirement for interaction with other target objects, and after the target object is stored in the subbase allocated by the subbase configuration device, the target object can effectively interact with other target objects, and when the subbase configuration device processes some services, the target object can be called more conveniently and effectively.
In some implementations, the target object can include an industry object. The industry objects can be used to refer to different industries, which respectively correspond to different types of data and respectively have different data storage requirements. In practical applications, it is often necessary to obtain data of different industries for supply chain applications. Accordingly, there is a need to obtain data for different business objects, i.e., receive a banking configuration request for those business objects.
In some embodiments, in the case that the target object is an industry object, the sub-base configuration device executing the sub-base configuration method may be a supply chain intermediate server. The supply chain intermediate station server is used for receiving access requests of different target objects and storing the corresponding target objects based on the access requests. The platform server in the supply chain can also be configured with corresponding service processing logics, and the service processing logics can call the data of corresponding target objects based on service requirements. In some cases, there may also be a mutual call between the service processing logics, and accordingly, the service processing logics may also share the data acquisition path of the target object based on the internal transmission path of the station server in the supply chain, so that processing of a corresponding service can be effectively implemented.
In some embodiments, the target object may include at least one target sub-object, and the target sub-object may be an object independently having a certain characteristic in the target object, for example, data corresponding to the target sub-object may be data belonging to a certain class of objects. In the case that the target object includes a target sub-object, the characteristics of the target sub-object may be combined to allocate a corresponding sub-library to the target object.
Accordingly, in the case that the target object is an industry object, the target sub-object may be a tenant object. Tenant objects may be objects within the industry that need to be stored based on a sub-base. In practical applications, a plurality of different industries often exist, and a plurality of tenants generally exist in each industry, so that respective data storage requirements also correspond to the different tenant objects.
The library allocation request may be a request for allocating a corresponding library to the target object. The library allocation request may include target object information of the target object, where the target object is used to describe a requirement of the target object for data storage. After receiving the library splitting configuration request, the library splitting configuration device may analyze the target object information from the library splitting configuration request, and then configure a corresponding library for the target object based on the target object information.
Specifically, the target object information may be information determined by the target object based on its own data characteristics, for example, when the target object itself includes more target sub-objects and the relevance between the target sub-objects is not great, the data for the target sub-objects may also need to be stored in an isolated manner; under the condition that the data integrity of the target object is strong, a certain storage area can be directly allocated for the target object to perform data storage. In practical application, a corresponding data storage mode may be set according to a corresponding requirement of a target object to enable the target object to store data of the target object, which is not limited to the above example and is not described herein again.
The library allocation request may be a request provided by a user terminal corresponding to the target object. When a target object stores the requirement of accessing the library-splitting configuration equipment, corresponding target object information can be set according to the storage requirement of data of the target object, and a corresponding library-splitting configuration request is generated based on the target object information, so that after the library-splitting configuration request is sent to the library-splitting configuration equipment, the library-splitting configuration equipment can allocate a corresponding library to the target object based on the library-splitting configuration request.
The sub-library may be a part of a storage space in a database corresponding to the sub-library configuration device for individually storing data corresponding to the target object. Different sub-libraries can be in a physical isolation state or a logic isolation state, so that the confusion condition among different data can be avoided when the data is called. Correspondingly, different sublibraries can have different data storage modes, and the specific data storage mode can be set based on the data storage requirements of different target objects.
In some embodiments, the library allocation request may further include an object identifier of the target object. The object identifier may be used to uniquely identify the corresponding target object, so that the unique target object can be conveniently and accurately located in a subsequent process based on the object identifier. The object identifiers may be sequentially distributed according to pre-generated identifiers, or corresponding identifiers may be generated in a hash value manner for the target object. In practical application, the object identifier may be generated in a corresponding manner according to requirements, which is not described herein again.
S120: determining the type of the sub-library according to the target object information; the sublibrary type is used to represent the way data is stored.
After the target object information is acquired, the corresponding sub-library type can be determined according to the target object information. The bin type can be used to indicate the manner in which data is stored. Under the condition that the target object information is used for describing the data storage requirement of the target object, the corresponding library type can be effectively determined based on the target object information, so that the corresponding library can be distributed to the target object based on the library type in the subsequent step.
The specific method for determining the type of the sub-library can preset the corresponding relation between different target object information and the type of the sub-library, and the type of the sub-library of the target object information is determined according to the corresponding relation. Other ways may also be adopted, for example, a corresponding model is trained in advance to identify the sub-library type corresponding to the target object information. In practical application, the sub-library type may be obtained in a corresponding manner as needed, and is not limited to the above example, and is not described herein again.
In some embodiments, in the case where at least one target sub-object is included in the target object, the sub-library type may be set based on the types of the target object and the target sub-object. Specifically, the sub-library type may include at least one of logical isolation according to a field, logical isolation according to a target object physical isolation target sub-object, and physical isolation according to a target object and a target sub-object.
The logical isolation according to the fields may be to store the data of the target object based on the fields in the data of the target object, the data of the target object may be stored in a certain storage medium as a whole, the data of other target objects may also be stored in the storage medium, but the data of different target objects may be distinguished by the fields corresponding to the different target objects; the physical isolation according to the target object and the logical isolation performed on the target sub-objects may be performed by storing data of each target object in a separate storage medium, and storing data of different target sub-objects in the storage medium by a logical isolation manner; the physical isolation between the target object and the target sub-object may be performed by limiting the physically isolated section to the target sub-object, that is, storing the target sub-object of each target object in different storage sections. In practical application, different sub-library types can be set according to different target objects, which is not described herein.
S130: configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
The target sub-library may be a sub-library determined based on the sub-library type and used for storing the data of the target object, and the target sub-library may be a certain storage area divided from one database, or may be located in different databases, which is not limited thereto. The target sub-libraries are relatively independent, so that the data in different target sub-libraries are ensured to be logically or physically isolated.
Different kinds of target sub-libraries are corresponding based on the sub-library types. Under the condition that different storage requirements exist in the target object, different target sub-libraries can be configured based on corresponding sub-library types, and then different types of target object data are stored by using the target sub-libraries.
In some embodiments, based on the example in step S120, when logical isolation by field is required, a target sub-library storing data of a target object based on a field in the data of the target object may be allocated; when physical isolation is needed according to a target object and logical isolation is needed to be performed on target sub-objects, the target sub-libraries can be in a physical isolation mode, and data of different target sub-objects stored in the target sub-libraries can be in a logical isolation mode, so that corresponding storage requirements are met; when the target object and the target sub-object need to be stored in a physical isolation manner, a plurality of cells physically isolated from each other may be equally divided in the target sub-library while ensuring physical isolation between different target sub-libraries, and the target small object in the target object may be stored using the cells.
The foregoing example is only to provide an exemplary description for the allocation process of the target sub-libraries while combining with the foregoing embodiment, and in practical applications, the corresponding target sub-libraries may be allocated according to specific storage requirements, which is not limited to the foregoing example, and is not described herein again.
In some embodiments, when configuring the target sub-base for the target object, a corresponding object token may be generated to the object identifier and the sub-base type of the target object, and the target sub-base may be configured for the target object based on the object token. The object token is mainly used for describing the sub-base stored in the target object, wherein the information of the target object and the information of the sub-base stored correspondingly are recorded. When the database partitioning type of the target object is determined, the database partitioning type and the condition of the target object are recorded in the object token, so that the object token can be directly acquired to acquire corresponding information when the target database partitioning needs to be allocated to the target object, and the configuration of the target database can be conveniently and quickly realized.
In some embodiments, the object identifier includes an identifier assigned to the target object after receiving the banking configuration request. In order to facilitate the management of the library splitting configuration equipment on different target objects, the object identifier may be generated by the library splitting configuration equipment and allocated to different target objects, so as to ensure that different target objects can be uniquely identified, thereby avoiding the problem of library splitting configuration caused by different or repeated identifier types of the target objects, and facilitating the configuration and subsequent management of the target library splitting.
Based on the foregoing embodiments, in some implementations, before generating the object token, an access key corresponding to the target object may be generated. The access key is mainly used for realizing the verification of the identity of the target object in the subsequent process. The access key may be a symmetric key or an asymmetric key. Accordingly, the access key may be applied in a subsequent step by decrypting the corresponding information using the access key or by implementing a digital signature, etc. The use of the access key in practical applications is not limited to the above examples, and is not described herein again.
Correspondingly, after the access key is obtained, when the object token is generated, the access key, the object identifier and the partition type may be used to generate the object token, and the specific generation method may refer to measures in generating the object token in a general case, which is not described herein again.
By the aid of the database allocation method, under the condition that a database allocation request exists, target object information contained in the request can be acquired, the requirement of the target object for data storage is further determined, the database allocation type is determined according to the target object information, corresponding target database allocation setting is achieved, and data of the target object can be stored based on the requirement of the target object. The method adapts to the requirement of different target objects for storing data when the data of the target objects are stored, and simultaneously realizes effective isolation when the data of the different target objects are stored, thereby avoiding the situation of data confusion of the different target objects and being beneficial to calling the data of the different target objects for business processing at the later stage.
The embodiment of the specification further provides a service processing method. The execution main body of the service processing method can be service processing equipment, and the service processing equipment comprises but is not limited to a server, an industrial personal computer, a PC (personal computer) and the like. It should be noted that the service processing device and the library allocation device may be the same device or different devices, and are not limited thereto. As shown in fig. 2, the service processing method may include the following specific implementation steps.
S210: receiving an object calling service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are stored in the target subbase after the subbase type is determined according to the target object information and the target subbase is configured based on the subbase type.
The service initiating end can be a corresponding process or execution logic in the service processing equipment, and when the target object data needs to be called in the service processing process, the object calling service is sent out based on a corresponding request or a triggering instruction. And under the condition that the service initiating end belongs to the service processing equipment, the sending of the object calling service can be only the communication in the equipment.
The service initiating terminal may also be other equipment independent of the service processing equipment, and when corresponding target object data needs to be acquired in a service processing process, the object calling service may be sent to the service processing equipment based on the relevant information of the data that needs to be acquired, so that after the service processing equipment feeds back a corresponding storage address, the corresponding target object data is obtained based on the storage address by searching.
In practical applications, the service initiating terminal may be any device or program that satisfies the service processing method, and is not limited to the above examples.
The object call service is a service for requesting to call target object data. In the process of service processing, the service initiating end has a requirement for calling data of a certain target object or certain target objects, but the service initiating end does not directly manage the data of the target objects and cannot directly acquire the data of the target objects, so that an object calling service needs to be sent to acquire corresponding library dividing information so as to acquire regional information stored by the target objects.
The object call service may include an identifier of the target object, and is configured to uniquely identify the target object. After the service processing device receives the object calling service, the identification of the target object is obtained by analyzing the object calling service, that is, the target object data required to be obtained by the service calling end can be determined, and then the subsequent steps are executed to realize the search of the storage position of the target object data.
The target object data comprises data which are stored in the target subbase after the subbase type is determined according to the target object information and the target subbase is configured based on the subbase type. Specifically, after receiving a library splitting configuration request of a target object, determining a library splitting type based on target object information included in the library splitting configuration request, and then configuring the target library for the target object according to the library splitting type.
The target object may correspond to corresponding target object data, and the sub-library configuration device is required to allocate a corresponding sub-library to the target object data to store the target object data. The target object may have a requirement for interaction with other target objects, and after the target object is stored in the subbase allocated by the subbase configuration device, the target object can effectively interact with other target objects, and when the subbase configuration device processes some services, the target object can be called more conveniently and effectively.
The library allocation request may be a request for allocating a corresponding library to the target object. The library allocation request may include target object information of the target object, where the target object is used to describe a requirement of the target object for data storage. After receiving the library splitting configuration request, the library splitting configuration device may analyze the target object information from the library splitting configuration request, and then configure a corresponding library for the target object based on the target object information.
The sub-library may be a part of a storage space in a database corresponding to the sub-library configuration device for individually storing data corresponding to the target object. Different sub-libraries can be in a physical isolation state or a logic isolation state, so that the confusion condition among different data can be avoided when the data is called. Correspondingly, different sublibraries can have different data storage modes, and the specific data storage mode can be set based on the data storage requirements of different target objects.
The target sub-library may be a sub-library determined based on the sub-library type and used for storing the data of the target object, and the target sub-library may be a certain storage area divided from one database, or may be located in different databases, which is not limited thereto. The target sub-libraries are relatively independent, so that the data in different target sub-libraries are ensured to be logically or physically isolated.
Different kinds of target sub-libraries are corresponding based on the sub-library types. Under the condition that different storage requirements exist in the target object, different target sub-libraries can be configured based on corresponding sub-library types, and then different types of target object data are stored by using the target sub-libraries.
S220: generating sub-library information corresponding to the target object data; the sub-library information is used for representing a sub-library for storing the target object data.
The database allocation information is used for representing relevant information of a database in which the target object data is located, and specifically can be used for directly indicating the database in which the target object data is stored, so that a service initiating terminal can locate a corresponding database based on the database allocation information after receiving the database allocation information, and accordingly obtain the corresponding target object data.
In some embodiments, when the banking information is generated, after the object identifier and the object token corresponding to the target object are determined, the object token may be analyzed to obtain the banking type corresponding to the target object, and then the banking information is generated based on the banking type. The object token is mainly used for describing the sub-base stored in the target object, wherein the information of the target object and the information of the sub-base stored correspondingly are recorded. When the database partitioning type of the target object is determined, the database partitioning type and the condition of the target object are recorded in the object token, so that the object token can be directly acquired to acquire corresponding information when the target database partitioning needs to be allocated to the target object, and the configuration of the target database can be conveniently and quickly realized. By directly analyzing the object token, the database partitioning condition corresponding to the target object data can be obtained, so that the corresponding database partitioning information can be conveniently and quickly generated.
In some embodiments, the classification information may include a classification type. The bin type can be used to indicate the manner in which data is stored. Under the condition that the target object information is used for describing the data storage requirement of the target object, the corresponding library type can be effectively determined based on the target object information, so that the corresponding library can be distributed to the target object based on the library type in the subsequent step.
The specific method for determining the type of the sub-library can preset the corresponding relation between different target object information and the type of the sub-library, and the type of the sub-library of the target object information is determined according to the corresponding relation. Other ways may also be adopted, for example, a corresponding model is trained in advance to identify the sub-library type corresponding to the target object information. In practical application, the sub-library type may be obtained in a corresponding manner as needed, and is not limited to the above example, and is not described herein again.
In some embodiments, in the case where at least one target sub-object is included in the target object, the sub-library type may be set based on the types of the target object and the target sub-object. Specifically, the sub-library type may include at least one of logical isolation according to a field, logical isolation according to a target object physical isolation target sub-object, and physical isolation according to a target object and a target sub-object.
The logical isolation according to the fields may be to store the data of the target object based on the fields in the data of the target object, the data of the target object may be stored in a certain storage medium as a whole, the data of other target objects may also be stored in the storage medium, but the data of different target objects may be distinguished by the fields corresponding to the different target objects; the physical isolation according to the target object and the logical isolation performed on the target sub-objects may be performed by storing data of each target object in a separate storage medium, and storing data of different target sub-objects in the storage medium by a logical isolation manner; the physical isolation between the target object and the target sub-object may be performed by limiting the physically isolated section to the target sub-object, that is, storing the target sub-object of each target object in different storage sections. In practical application, different sub-library types can be set according to different target objects, which is not described herein.
S230: and sending the branch library information to the service initiating terminal so that the service initiating terminal searches target object data based on the branch library information and completes the processing of the object calling service by using the target object data.
After the branch base information is obtained, the branch base information can be sent to a service initiating terminal, so that the service initiating terminal searches target object data according to the branch base information, and further completes service processing by using the target object data.
The service initiating terminal can acquire a specific target sub-library identifier from the sub-library information, then search the target sub-library in a corresponding database according to the target sub-library identifier, and further call the target object data from the target sub-library. In practical applications, the target object data may also be obtained in other manners, which are not limited to the above examples and are not described herein again.
In some embodiments, in order to avoid data leakage, the sub-library information may also be used as one-time authentication information, that is, the sub-library information may only act in the data calling process, identity authentication cannot be performed through the sub-library data in a subsequent process, and secondary searching of the target sub-library by using the sub-library information cannot be achieved, so as to ensure information security.
Based on the introduction of the embodiment in step S220, when the banking information includes the banking type, and the service initiator searches for the target object data based on the banking information, if the banking type is a logical data isolation by field, the target object data may be searched for using a query condition based on the identifiers of the target object and the target sub-object; if the sub-base type is the condition of logically isolating the target sub-object according to the target object physical isolation, after the sub-base type can be routed to the corresponding database through the identification of the target object, the target object data is searched in the database by utilizing the query condition based on the identification of the target sub-object; if the sub-library type is the condition of physical isolation according to the target object and the target sub-object, the query request can be routed to the corresponding database by using the sub-library middleware to search the target object data.
In some embodiments, a situation may occur that different service-initiating terminals need to perform data call with each other in the same service execution process, and correspondingly, a situation may occur that at least two service-initiating terminals need to call the same target object data. In order to avoid that a plurality of service initiating terminals sequentially send objects to call services so that the service processing process is more complicated, after a certain service initiating terminal obtains the branch library information, the branch library information can be stored in a thread variable, and the thread variable is sent to a service server terminal in a head transfer mode. The service server may be a service processing end that processes a corresponding service in cooperation with the service originating end. After receiving the thread variables, the service servers can analyze the thread variables to obtain branch library information, and then acquire target object data by using the branch library information, so that the service servers and the service initiator can cooperatively realize service processing.
By the service processing method, when the service is processed, if the service needs to call the data of the corresponding target object, the service initiating end can send the corresponding object call service, and then the corresponding sub-library information is generated according to the target object data needing to be called, so that the sub-library in which the target object data is stored is represented. After the subbase information is obtained, the subbase information can be sent to the service initiating terminal, so that the service initiating terminal can position the subbase where the target object data is located according to the subbase information, and further obtain the target object data from the subbase to realize the processing of the corresponding service. By the method, when the data of different target objects are stored based on different types of sub-libraries, the data can be effectively called, and corresponding services are solved, so that the data of different types can be effectively called while being stored, and the services of different types can be effectively processed.
A library allocation apparatus according to an embodiment of the present disclosure is introduced based on the library allocation method corresponding to fig. 1. The database allocation device may be disposed in the database allocation device. As shown in fig. 3, the library configuration apparatus includes the following modules.
A library allocation request receiving module 310, configured to receive a library allocation request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage.
The database type determining module 320 is configured to determine a database type according to the target object information; the sublibrary type is used to represent the way data is stored.
A target sub-library configuration module 330, configured to configure a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
A service processing apparatus according to an embodiment of the present description is introduced based on a service processing method corresponding to fig. 2. The service processing device may be disposed in the service processing device. As shown in fig. 4, the service processing apparatus includes the following modules.
An object call service receiving module 410, configured to receive an object call service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are stored in the target subbase after the subbase type is determined according to the target object information and the target subbase is configured based on the subbase type.
A database information generating module 420, configured to generate database information corresponding to the target object data; the sub-library information is used for representing a sub-library for storing the target object data.
A library information sending module 430, configured to send the library information to the service initiating end, so that the service initiating end searches for target object data based on the library information and completes processing of the object call service by using the target object data.
Based on the library allocation method corresponding to fig. 1, an embodiment of the present specification provides a library allocation device. As shown in fig. 5, the banking configuration apparatus may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer program instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer program instructions to perform the steps of: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage; determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data; configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
Based on the service processing method corresponding to fig. 2, an embodiment of the present specification provides a service processing device. As shown in fig. 6, the traffic processing device may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer program instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer program instructions to perform the steps of: receiving an object calling service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library; generating sub-library information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data; and sending the branch library information to the service initiating terminal so that the service initiating terminal searches target object data based on the branch library information and completes the processing of the object calling service by using the target object data.
It should be noted that the method for configuring a sub-library, the method for processing a service, the apparatus for processing a service, and the device for configuring a sub-library may be applied to the technical field of big data, and may also be applied to other technical fields, which are not limited thereto.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement of the process flow cannot be realized by hardware physical modules. For example, Programmable Logic Devices (PLDs) (e.g., Field Programmable Gate arrays (Field Programmable Gate arrays)yFPGA)) is an integrated circuit whose logic functions are determined by the user programming the device. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present specification can be implemented by software plus the necessary first hardware platform. Based on such understanding, the technical solutions of the present specification may be essentially or partially implemented in the form of software products, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The description is operational with numerous first or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the specification has been described with examples, those skilled in the art will appreciate that there are numerous variations and permutations of the specification that do not depart from the spirit of the specification, and it is intended that the appended claims include such variations and modifications that do not depart from the spirit of the specification.

Claims (15)

1. A method for database allocation, comprising:
receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage;
determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data;
configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
2. The method of claim 1, in which the target object comprises an industry object.
3. The method of claim 1, wherein the target object includes at least one target sub-object; the sub-library type comprises at least one of logical isolation according to fields, logical isolation according to a target object physical isolation target sub-object, and physical isolation according to the target object and the target sub-object.
4. The method of claim 1, wherein the banking configuration request further comprises an object identification of the target object; configuring a target sub-library for the target object based on the sub-library type, comprising:
generating an object token by using the object identifier and the sub-base type; the object token is used for describing a sub-library stored by the target object;
and configuring a target sub-library for the target object based on the object token.
5. The method of claim 4, wherein prior to generating an object token using the object identification and a banking type, further comprising:
generating an access key corresponding to the target object;
correspondingly, the generating an object token by using the object identifier and the sublibrary type includes:
and generating an object token by using the access key, the object identifier and the sublibrary type.
6. The method of claim 4, wherein the object identification comprises an identification assigned to the target object upon receiving the banking configuration request.
7. A banking configuration apparatus, comprising:
the database allocation request receiving module is used for receiving a database allocation request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage;
the database type determining module is used for determining the database type according to the target object information; the sublibrary type is used for representing a mode of storing data;
the target sub-library configuration module is used for configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
8. A banking configuration device comprising a memory and a processor;
the memory to store computer program instructions;
the processor to execute the computer program instructions to implement the steps of: receiving a sub-library configuration request of a target object; the database allocation request comprises the target object information; the target object information is used for describing the requirement of the target object for data storage; determining the type of the sub-library according to the target object information; the sublibrary type is used for representing a mode of storing data; configuring a target sub-library for the target object based on the sub-library type; the target sub-library is used for storing data corresponding to the target object.
9. A method for processing a service, comprising:
receiving an object calling service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library;
generating sub-library information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data;
and sending the branch library information to the service initiating terminal so that the service initiating terminal searches target object data based on the branch library information and completes the processing of the object calling service by using the target object data.
10. The method of claim 9, wherein the generating of banking information corresponding to the target object data comprises:
determining an object token corresponding to a target object based on the object invocation service; the object token is used for describing a sub-library stored by the target object;
analyzing the object token to obtain a sub-base type corresponding to the target object;
and generating the database dividing information according to the database dividing type.
11. The method of claim 9, wherein the target object data corresponds to a target object; the target object comprises at least one target sub-object; the sub-library type comprises at least one of logical data isolation according to fields, physical isolation according to a target object and logical isolation according to a target sub-object, and physical isolation according to the target object and the target sub-object.
12. The method of claim 11, wherein the banking information includes a banking type; the business initiating terminal searches the target object data based on the branch base information, and the method comprises the following steps:
in the case that the sub-base type is logical data isolation by field, the target object data is searched using a query condition based on the identification of the target object and the target sub-object, or,
under the condition that the sub-base type is physically isolated according to the target object and the target sub-object is logically isolated, after the sub-base type is routed to the corresponding database through the identifier of the target object, the data of the target object is searched in the database by utilizing the query condition based on the identifier of the target sub-object, or,
and under the condition that the sub-library type is physically isolated according to the target object and the target sub-object, routing the query request to the corresponding database by using the sub-library middleware to search the target object data.
13. The method of claim 9, wherein in a case that the object invocation service involves a service server, after sending the sublibrary information to the service initiator, further comprising:
storing the branch library information in a thread variable;
and sending the thread variable to the service server in a head transfer mode so that the service server can assist the service initiator in completing service processing after acquiring target object data based on the thread variable.
14. A traffic processing apparatus, comprising:
the object calling service receiving module is used for receiving the object calling service sent by the service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library;
the database dividing information generating module is used for generating database dividing information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data;
and the database information sending module is used for sending the database information to the service initiating terminal so that the service initiating terminal searches target object data based on the database information and completes the processing of the object calling service by using the target object data.
15. A traffic processing device comprising a memory and a processor;
the memory to store computer program instructions;
the processor for executing the computer program to implement the steps of: receiving an object calling service sent by a service initiating end; the object calling service is used for requesting to call target object data; the target object data comprises data which are determined according to target object information, configured according to the sub-library type and stored in the target sub-library; generating sub-library information corresponding to the target object data; the subbase information is used for representing a subbase for storing the target object data; and sending the branch library information to the service initiating terminal so that the service initiating terminal searches target object data based on the branch library information and completes the processing of the object calling service by using the target object data.
CN202110564933.3A 2021-05-24 2021-05-24 Database allocation method, service processing method, device and equipment Pending CN113239047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110564933.3A CN113239047A (en) 2021-05-24 2021-05-24 Database allocation method, service processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110564933.3A CN113239047A (en) 2021-05-24 2021-05-24 Database allocation method, service processing method, device and equipment

Publications (1)

Publication Number Publication Date
CN113239047A true CN113239047A (en) 2021-08-10

Family

ID=77138539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110564933.3A Pending CN113239047A (en) 2021-05-24 2021-05-24 Database allocation method, service processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN113239047A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080537A (en) * 2022-06-07 2022-09-20 易保网络技术(上海)有限公司 Multi-tenant data partitioning method, program product and electronic device
CN117573655A (en) * 2024-01-15 2024-02-20 中国标准化研究院 Data management optimization method and system based on convolutional neural network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080537A (en) * 2022-06-07 2022-09-20 易保网络技术(上海)有限公司 Multi-tenant data partitioning method, program product and electronic device
CN115080537B (en) * 2022-06-07 2023-11-10 易保网络技术(上海)有限公司 Multi-tenant database separation method and device, storage medium, chip device and electronic equipment
CN117573655A (en) * 2024-01-15 2024-02-20 中国标准化研究院 Data management optimization method and system based on convolutional neural network
CN117573655B (en) * 2024-01-15 2024-03-12 中国标准化研究院 Data management optimization method and system based on convolutional neural network

Similar Documents

Publication Publication Date Title
CN107015853B (en) Method and device for realizing multi-stage task
CN111859470B (en) Business data chaining method and device
CN113239047A (en) Database allocation method, service processing method, device and equipment
CN111355816B (en) Server selection method, device, equipment and distributed service system
CN110083627B (en) Data processing method, system, computer device and storage medium
CN113259359B (en) Edge node capability supplementing method, system, medium and electronic terminal
CN111930770A (en) Data query method and device and electronic equipment
CN111782520A (en) Test method and device and electronic equipment
CN113987337A (en) Search method, system, equipment and storage medium based on componentized dynamic arrangement
CN110020333A (en) Data analysing method and device, electronic equipment, storage medium
CN111008220A (en) Dynamic identification method and device of data source, storage medium and electronic device
CN104573112A (en) Page query method and data processing node for OLTP cluster database
CN114064712A (en) Data access method and device, electronic equipment and computer readable storage medium
CN112068812B (en) Micro-service generation method and device, computer equipment and storage medium
CN110609707B (en) Online data processing system generation method, device and equipment
US10528625B2 (en) Client cloud synchronizer
CN112463814A (en) Data query method and device
CN115905314A (en) Configuration data processing method, system, device and computer readable storage medium
CN115357606A (en) Data source query method, system, computer equipment and storage medium
CN111666278A (en) Data storage method, data retrieval method, electronic device and storage medium
CN114564856A (en) Data sharing method based on FMEA and electronic equipment
CN114942882A (en) Application testing method and system, electronic equipment and storage medium
CN111324778B (en) Data and service processing method and device and electronic equipment
CN114637969A (en) Target object authentication method and device
JP2002342403A (en) Device/method for detecting false path and its program

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