CN114218198A - Service information migration method, device, equipment and medium - Google Patents

Service information migration method, device, equipment and medium Download PDF

Info

Publication number
CN114218198A
CN114218198A CN202111558092.1A CN202111558092A CN114218198A CN 114218198 A CN114218198 A CN 114218198A CN 202111558092 A CN202111558092 A CN 202111558092A CN 114218198 A CN114218198 A CN 114218198A
Authority
CN
China
Prior art keywords
service information
service
migration
information
target
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
CN202111558092.1A
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 CN202111558092.1A priority Critical patent/CN114218198A/en
Publication of CN114218198A publication Critical patent/CN114218198A/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/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The present disclosure provides a service information migration method, which can be applied to the technical field of computers and the technical field of big data. The service information migration method comprises the following steps: determining first service information needing to be migrated from a first service form according to a first service state and a first retention time of the first service information to obtain first migration service information, wherein the first service form comprises at least one piece of first service information; determining second service information associated with the first migration service information from a second service form according to the initial association relationship list to obtain second migration service information, wherein the initial association relationship list records the association relationship between the first service information and the second service information; and migrating the first migration service information and the second migration service information to a historical service form. The present disclosure also provides a service information migration apparatus, device, storage medium and program product.

Description

Service information migration method, device, equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, the field of big data technologies, specifically to the field of database technologies, and more specifically to a method, an apparatus, a device, a medium, and a program product for migrating business information.
Background
With the development of computing technology, business information can be stored in a database for related users to query or analyze. According to actual requirements, different service information can be stored in different databases or data tables, and a user can operate the corresponding database or data table to inquire relevant service information.
In the process of implementing the present disclosure, the inventor finds that query operations for business information having an association relationship in the related art are inconvenient.
Disclosure of Invention
In view of the above, the present disclosure provides a service information migration method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, a method for migrating service information is provided, including:
determining first service information needing to be migrated from a first service form according to a first service state and a first retention time of the first service information to obtain first migration service information, wherein the first service form comprises at least one piece of the first service information;
determining second service information associated with the first migration service information from a second service form according to an initial association relation list to obtain second migration service information, wherein the initial association relation list records the association relation between the first service information and the second service information;
and migrating the first migration service information and the second migration service information to a historical service form.
According to an embodiment of the present disclosure, the determining, according to the first service state and the first retention time of the first service information, the first service information to be migrated from the first service form, and obtaining the first migration service information includes:
and in the first service form, determining the first service information of which the first service state is service completion and the first retention time is greater than or equal to a first preset retention time threshold as the first service information needing to be migrated, and obtaining the first migration service information.
According to an embodiment of the present disclosure, the service information migration method further includes:
determining target second service information from the second migration service information according to a preset target condition;
and deleting the first migration service information from the first service form and the target second service information from the second service form according to a preset deletion rule.
According to an embodiment of the present disclosure, the first migration service information has a first target identifier, and the target second service information has a second target identifier;
the deleting the first migration service information from the first service form and the target second service information from the second service form according to a preset deletion rule includes:
according to the initial association relation list, determining first service information associated with the target second service information from the first service form;
determining first service information associated with the target second service information as first associated service information;
determining second service information associated with the first associated service information from the second service form according to the initial association relation list;
determining second service information associated with the first associated service information as second associated service information;
iteratively updating the first associated service information and the second associated service information according to a preset updating rule to obtain a first associated service information set and a second associated service information set;
determining first associated service information with a first target identifier in the first associated service information set as first target associated service information, and determining second associated service information with a second target identifier in the second associated service information set as second target associated service information,
and deleting first migration service information which is the same as the first target associated service information from the first service form, and deleting target second service information which is the same as the second target associated service information from the second service form.
According to an embodiment of the present disclosure, the determining, according to a preset target condition, target second service information from the second migration service information includes:
determining the second migration service information of which the second retention time length is greater than or equal to a second preset retention time length threshold value as candidate second service information;
and determining the target second service information according to the second service state of the candidate second service information.
According to an embodiment of the present disclosure, the determining the target second service information according to the second service status of the candidate second service information includes:
determining first service information associated with the candidate second service information from the first service form according to the initial association relation list;
and determining the candidate second service information as the target second service information when the first service state of the first service information associated with the candidate second service information is service completion.
According to an embodiment of the present disclosure, the historical service form includes: a first historical service form and a second historical service form;
the migrating the first migration service information and the second migration service information to the historical service form includes:
migrating the first migration service information to the first historical service form;
migrating second migration service information to the second historical service form; and
and according to the initial association relationship list, constructing a migration association relationship list in the historical service form so as to record the association relationship between the first migration service information and the second migration service information through the migration association relationship list.
In accordance with an embodiment of the present disclosure,
the first service information comprises sign-in information;
the second service information includes order information.
A second aspect of the present disclosure provides a service information migration apparatus, including:
a first determining module, configured to determine, according to a first service state and a first retention duration of first service information, first service information to be migrated from a first service form, to obtain first migration service information, where the first service form includes at least one piece of the first service information;
the association module is used for determining second service information associated with the first migration service information from a second service form according to an initial association relation list to obtain second migration service information, wherein the initial association relation list records the association relation between the first service information and the second service information; and
and the migration module is used for migrating the first migration service information and the second migration service information to a historical service form.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-mentioned service information migration method.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the above-mentioned service information migration method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program that, when executed by a processor, implements the service information migration method described above.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a service information migration method and apparatus according to an embodiment of the present disclosure;
fig. 2 schematically shows a flow chart of a service information migration method according to an embodiment of the present disclosure;
fig. 3 schematically shows a flow chart of a service information migration method according to another embodiment of the present disclosure;
fig. 4 schematically illustrates a flowchart of deleting first migration service information from a first service form and target second service information from a second service form according to a preset deletion rule according to an embodiment of the present disclosure;
fig. 5 schematically illustrates an application scenario diagram of deleting a first migration service information from a first service form and a target second service information from a second service form according to a preset deletion rule according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of a structure of a service information migration apparatus according to an embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of an electronic device adapted to implement a service information migration method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
With the development of computing technology, business information can be stored in a database for related users to query or analyze. The completed business information can be migrated to a historical data table or a historical database, so that related personnel can inquire business information with long business completion time in the historical data table or the historical database.
However, for two types of service information having an association relationship, for example, order information and receipt information, it is necessary to determine that the order information is a service completion only when all the receipt information associated with the order information is completed (i.e., all the associated receipts have been already received). After the preset time length after the order information service is completed, the order information can be migrated to a historical data table or a historical database.
In the process of implementing the present disclosure, the inventor finds that query operations for business information having an association relationship in the related art are inconvenient.
In view of the foregoing problems, embodiments of the present disclosure provide a service information migration method, apparatus, device, medium, and program product. The service information migration method comprises the following steps:
determining first service information needing to be migrated from a first service form according to a first service state and a first retention time of the first service information to obtain first migration service information, wherein the first service form comprises at least one piece of first service information; determining second service information associated with the first migration service information from a second service form according to the initial association relationship list to obtain second migration service information, wherein the initial association relationship list records the association relationship between the first service information and the second service information; and migrating the first migration service information and the second migration service information to a historical service form.
According to the embodiment of the disclosure, according to a first service state and a first retention time of first service information, the first service information needing to be migrated is determined from a first service form to obtain the first migration service information, according to an initial association relation list, second service information associated with the first migration service information is determined from a second service form to obtain the second migration service information, and the first migration service information and the second migration service information associated with the first migration service information can be migrated into a historical service form, so that a relevant user can query the first migration service information by querying the historical service form according to the service state and the retention time of the service information, and obtain the second service information associated with the first migration service information to reduce query steps and improve query efficiency of the service information.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
In the technical scheme of the disclosure, before the personal information of the user is acquired or collected, the authorization or the consent of the user is acquired.
Fig. 1 schematically shows an application scenario diagram of a service information migration method and apparatus according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the service information migration method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the service information migration apparatus provided by the embodiment of the present disclosure may be generally disposed in the server 105. The service information migration method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the service information migration apparatus provided in the embodiment of the present disclosure may also be disposed in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, and 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The service information migration method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 5 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flowchart of a service information migration method according to an embodiment of the present disclosure.
As shown in fig. 2, the service information migration method according to the embodiment of the present disclosure includes operations S210 to S230.
In operation S210, according to a first service state and a first retention duration of the first service information, the first service information to be migrated is determined from a first service form, so as to obtain the first migration service information, where the first service form includes at least one piece of first service information.
Operation S220 is performed to determine, according to the initial association relationship list, second service information associated with the first migration service information from the second service form, so as to obtain the second migration service information, where the initial association relationship list records an association relationship between the first service information and the second service information.
According to an embodiment of the present disclosure, the first service information and the second service information may be two types of service information having an association relationship, for example, the first service information may include examination and approval sheet information, the second service information may include receipt information for the examination and approval sheet information, but is not limited thereto, and the first service information and the second service information may also include other service information having an association relationship, for example, the first service information may include receipt information, and the second service information may include order information.
It should be noted that the same first service information may be associated with multiple second service information, and the same second service information may also be associated with multiple first service information. For example, in a case where the first service information is the receipt information and the second service information is the order information, the same receipt information may be associated with a plurality of order information, and the same order information may be associated with a plurality of receipt information.
According to an embodiment of the present disclosure, the first service state may be a service state of the first service information, the service state may include information described for the service information, and the first service state may include, for example, that a service is not generated, that the service is completed, that the service is running, and the like.
According to an embodiment of the present disclosure, the first remaining duration may include a duration remaining in the first service form after the first service information is generated.
In operation S230, the first migration service information and the second migration service information are migrated into the history service form.
According to the embodiment of the disclosure, the historical service form may be a form for storing the first migration service information and the second migration service information, and the related user may obtain a query result including the first migration service information and the second migration service information through a query operation for the historical service form.
It should be noted that the historical service form may be stored in the same database as the first service form and the second service form, or may be stored in a different database from the first service form and the second service form.
According to the embodiment of the disclosure, according to a first service state and a first retention duration of first service information, first service information to be migrated is determined from a first service form to obtain first migration service information, according to an initial association relation list, second service information associated with the first migration service information is determined from a second service form to obtain second migration service information, the first migration service information and the second migration service information associated with the first migration service information can be migrated into a historical service form, so that relevant users can query the first migration service information by querying the historical service form and obtain the second service information associated with the first migration service information according to the service state and the retention duration of the service information, so as to avoid querying two types of associated service information in different service forms respectively, and query steps are reduced, and the query efficiency of the service information is improved.
According to the embodiment of the present disclosure, in operation S210, the determining, according to the first service state and the first retention time of the first service information, the first service information to be migrated from the first service form, and obtaining the first migration service information includes:
in the first service form, determining first service information of which the first service state is service completion and the first retention time is greater than or equal to a first preset retention time threshold as first service information needing to be migrated, and obtaining first migration service information.
According to an embodiment of the present disclosure, the first preset retention time threshold may be set according to an actual requirement, and may include 1 year, 1 month, and the like. The specific time length of the first preset retention time length is not limited by the embodiments of the present disclosure.
According to the embodiment of the disclosure, under the condition that the first service state of the first service information is service completion and the first retention time is greater than or equal to the first preset retention time threshold, the queried frequency of the first service information may be reduced, so that the first service information is determined as the first service information to be migrated, and the problem that the first service information cannot be classified and stored, so that the queried service information is large in quantity, and the query efficiency is not affected is avoided.
According to an embodiment of the present disclosure, the historical business form may include: a first historical business form and a second historical business form.
The operation S230 of migrating the first migration service information and the second migration service information into the history service form may include the following operations.
Migrating the first migration service information to a first historical service form; migrating the second migration service information to a second historical service form; and constructing a migration association relation list in the historical service form according to the initial association relation list so as to record the association relation between the first migration service information and the second migration service information through the migration association relation list.
According to the embodiment of the disclosure, the first migration service information is migrated into the first historical service form, and the second migration service information is migrated into the second historical service form, so that the two types of service information migrated into the historical service forms can be separately stored, and a relevant user can conveniently inquire the type of the service information in the historical service form in which the service information of the corresponding type is stored, and the user can conveniently classify and inquire the type of the service information.
According to the embodiment of the disclosure, a migration association relationship list is built in a historical service form to record the association relationship between the first migration service information and the second migration service information in the historical service form, so that the first migration service information can be acquired in the first historical service form, and the second migration service information associated with the first migration service information can be acquired at the same time. Meanwhile, the second migration service information can be acquired from a second historical service form, and simultaneously, the first migration service information associated with the second migration service information is acquired. Therefore, when one type of service information is inquired, the other type of service information related to the service information can be quickly acquired, and the globality of the inquiry result can be comprehensively improved.
Meanwhile, a migration association relation list is built in the historical service form to record the association relation between the first migration service information and the second migration service information in the historical service form, and compared with the use of an initial association relation list, the response speed of association query can be improved, and the query efficiency is further improved.
According to an embodiment of the present disclosure, the first service information may include sign-in information, and the second service information may include order information.
It should be understood that the items in the same order information may be multiple, and multiple items may be signed in at different times and/or different places, respectively, so as to generate different multiple receipt information, and the order information may be associated with multiple receipt information. Meanwhile, the same receipt information may be the receipt information recorded for a plurality of goods, and the goods contained in the same receipt information may be generated by different order information, so that the same receipt information may be associated with the order information.
Fig. 3 schematically shows a flowchart of a service information migration method according to another embodiment of the present disclosure.
As shown in fig. 3, the service information migration method according to the embodiment of the present disclosure may further include operations S310 to S320.
In operation S310, target second service information is determined from the second migration service information according to a preset target condition.
In operation S320, the first migration service information is deleted from the first service form and the target second service information is deleted from the second service form according to a preset deletion rule.
According to the embodiment of the present disclosure, the preset target condition may be determined based on the service state of the second migration service information, may also be determined based on the retention time of the second migration service information, or may also be a preset target rule determined by comprehensively considering the service state and the retention time of the second migration service information.
According to the embodiment of the disclosure, after the first migration service information and the second migration service information are migrated to the historical service form, the first migration service information is deleted from the first service form and the target second service information is deleted from the second service form according to the preset deletion rule, so that the redundancy of the service information in the first service form and the second service form can be reduced, and the storage space is saved. After the first migration service information and the second migration service information are deleted at the same time, the query result of the first migration service information or the target second service information can be avoided from occurring in the query of the first service form or the query of the second service form, so that confusion of related users is avoided, and the query efficiency is improved.
According to an embodiment of the present disclosure, the operation S310 of determining the target second service information from the second migration service information according to the preset target condition may include the following operations.
Determining second migration service information of which the second retention time of the second migration service information is greater than or equal to a second preset retention time threshold value as candidate second service information; and determining the target second service information according to the second service state of the candidate second service information.
According to an embodiment of the present disclosure, the second remaining duration may include a duration remaining in the second service form after the second service information is generated. The second traffic state may include a traffic state used to characterize the second traffic information, which may include, for example, not generated, traffic completed, traffic running, etc.
When the second retention time of the second migration service information is greater than or equal to the second retention time, the second migration service information may be determined as the candidate second service information. Determining the target second service information according to the second service state of the candidate second service information, which may include determining the second service state as the candidate second service information in which the service is completed as the target second service information.
It should be noted that the first preset retention time threshold and the second preset retention time threshold may be the same or different, and those skilled in the art may design them according to actual requirements.
According to an embodiment of the present disclosure, the second migration service information is associated with the first migration service information, after the second migration service information is migrated to the historical service form, determining that the second retention time length in the second migration service information is too long as candidate second service information, determining that the candidate second service information with the second service state being service completion as target second service information, the second migration service information with longer retention time and service state of service completion can be deleted from the second service form, thereby avoiding the second business form and the historical business form from storing the target second business information at the same time, reducing the information redundancy in the second business form, meanwhile, the target second service information in the query result aiming at the second service form can be avoided, so that confusion caused by information redundancy can be avoided, and the query efficiency is improved.
According to an embodiment of the present disclosure, determining the target second service information according to the second service state of the candidate second service information may include, for example, an operation.
Determining first service information associated with the candidate second service information from the first service form according to the initial association relation list; and under the condition that the first service state of the first service information associated with the candidate second service information is service completion, determining the candidate second service information as target second service information.
According to an embodiment of the present disclosure, the second traffic state of the candidate second traffic information may be determined by the first traffic state of the first traffic information associated with the candidate second traffic information. For example, in a case where the first service information is the receipt information and the candidate second service information is the order information, the second service state of the order information may be determined by the first service state of the receipt information associated with the order information, and in a case where the first service state of the receipt information associated with the order information is the service completion, the second service state of the order information may be determined as the service completion.
According to an embodiment of the present disclosure, the first migration service information may have a first target identifier, and the target second service information may have a second target identifier.
Fig. 4 schematically shows a flowchart of deleting the first migration service information from the first service form and the target second service information from the second service form according to a preset deletion rule according to an embodiment of the present disclosure.
As shown in fig. 4, the operation S320 of deleting the first migration service information from the first service form and deleting the target second service information from the second service form according to the preset deletion rule may include operations S401 to S407.
In operation S401, first service information associated with the target second service information is determined from the first service form according to the initial association relationship list.
In operation S402, first service information associated with the target second service information is determined as first associated service information.
In operation S403, second service information associated with the first associated service information is determined from the second service form according to the initial association relationship list.
In operation S404, second service information associated with the first associated service information is determined as the second associated service information.
In operation S405, the first associated service information and the second associated service information are iteratively updated according to a preset update rule, so as to obtain a first associated service information set and a second associated service information set.
In operation S406, first associated service information having a first target identifier in the first associated service information set is determined as first target associated service information, and second associated service information having a second target identifier in the second associated service information set is determined as second target associated service information.
In operation S407, the first migration service information identical to the first target associated service information is deleted from the first service form, and the target second service information identical to the second target associated service information is deleted from the second service form.
Fig. 5 schematically illustrates an application scenario diagram of deleting first migration service information from a first service form and deleting target second service information from a second service form according to a preset deletion rule according to an embodiment of the present disclosure.
As shown in fig. 5, in operation S510, a start operation may be performed. And then performs operation S520. In operation S520, a target second service information having a second target identifier is queried from the second service form. The target second service information may be second service information queried from a second service form.
In operation S530, the queried name of the newly added second service information is written into a second name list. After the name of the newly added second service information is written into the second name list, the list length of the second name list will be increased.
In operation S540, it is determined whether the list length of the second name list is increased. In case that the determination result is yes, operation S550 may be performed.
In operation S550, first service information associated with the second service information newly added in the second name list is queried from the first service form, so as to obtain first associated service information.
In operation S560, the queried name of the first service information is written into the first name list
In operation S570, it is determined whether the list length of the first name list is increased. In case that the judgment result is yes, operation S580 may be performed.
In operation S580, second service information associated with the first associated service information is queried from the second service form, resulting in second associated service information. Operation S530 may then be performed in a loop. To iteratively update the first associated traffic information and the second associated traffic information.
Until the judgment result of operation S540 is no, that is, the length of the second name list is not increased, and the judgment result of lake integrating operation S570 is no, that is, the length of the first name list is not increased, operation S590 may be performed to end the operation.
The obtained name of the first service information in the first name list can be used for representing the first associated service information set, and the name of the second service information in the second name list can be used for representing the second associated service information set. And obtaining a first associated service information set and a second associated service information set according to the first name list and the second name list.
And then determining first associated service information with a first target identifier in the first associated service information set as first target associated service information, and determining second associated service information with a second target identifier in the second associated service information set as second target associated service information. And deleting the first migration service information which is the same as the first target associated service information from the first service form, and deleting the target second service information which is the same as the second target associated service information from the second service form.
Based on the service information migration method, the disclosure also provides a service information migration device. The apparatus will be described in detail below with reference to fig. 6.
Fig. 6 schematically shows a block diagram of a service information migration apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the service information migration apparatus 600 of this embodiment includes a first determination module 610, an association module 620, and a migration module 630.
The first determining module 610 is configured to determine, according to a first service state and a first retention duration of the first service information, the first service information to be migrated from a first service form to obtain the first migration service information, where the first service form includes at least one piece of first service information.
And the association module 620 is configured to determine, according to the initial association relationship list, second service information associated with the first migration service information from the second service form to obtain the second migration service information, where the initial association relationship list records an association relationship between the first service information and the second service information.
The migration module 630 is configured to migrate the first migration service information and the second migration service information to the historical service form.
According to an embodiment of the present disclosure, the first determining module may include: a first determination unit.
The first determining unit is configured to determine, in the first service form, first service information in which the first service state is service completion and the first retention time is greater than or equal to a first preset retention time threshold as first service information to be migrated, so as to obtain first migration service information.
According to an embodiment of the present disclosure, the service information migration apparatus may further include: a second determining module and a deleting module.
And the second determining module is used for determining target second service information from the second migration service information according to a preset target condition.
And the deleting module is used for deleting the first migration service information from the first service form and deleting the target second service information from the second service form according to a preset deleting rule.
According to the embodiment of the disclosure, the first migration service information has a first target identifier, and the target second service information has a second target identifier.
The deletion module may include: the system comprises a first association unit, a first association service determination unit, a second association service determination unit, an update unit, a target service determination unit and a deletion unit.
The first association unit is used for determining first service information associated with the target second service information from the first service form according to the initial association relation list;
and the first associated service determining unit is used for determining the first service information associated with the target second service information as the first associated service information.
And the second association unit is used for determining second service information associated with the first associated service information from the second service form according to the initial association relation list.
And the second associated service determining unit is used for determining the second service information associated with the first associated service information as the second associated service information.
And the updating unit is used for iteratively updating the first associated service information and the second associated service information according to a preset updating rule to obtain a first associated service information set and a second associated service information set.
And the target service determining unit is used for determining the first associated service information with the first target identifier in the first associated service information set as the first target associated service information, and determining the second associated service information with the second target identifier in the second associated service information set as the second target associated service information.
And the deleting unit is used for deleting the first migration service information which is the same as the first target associated service information from the first service form and deleting the target second service information which is the same as the second target associated service information from the second service form.
According to an embodiment of the present disclosure, the second determining module may include: a candidate determination unit and a second determination unit.
And the candidate determining unit is used for determining the second migration service information of which the second retention time length is greater than or equal to a second preset retention time length threshold value as the candidate second service information.
And the second determining unit is used for determining the target second service information according to the second service state of the candidate second service information.
According to an embodiment of the present disclosure, the second determining unit may include: a first determining subunit and a second determining subunit.
And the first determining subunit is used for determining the first service information associated with the candidate second service information from the first service form according to the initial association relation list.
And the second determining subunit is used for determining the candidate second service information as the target second service information under the condition that the first service state of the first service information associated with the candidate second service information is service completion.
According to an embodiment of the present disclosure, a historical business form includes: a first historical business form and a second historical business form.
The migration module may include: the system comprises a first migration unit, a second migration unit and a construction unit.
And the first migration unit is used for migrating the first migration service information to the first historical service form.
And the second migration unit is used for migrating the second migration service information to a second historical service form.
And the building unit is used for building a migration association relation list in the historical service form according to the initial association relation list so as to record the association relation between the first migration service information and the second migration service information through the migration association relation list.
In accordance with an embodiment of the present disclosure,
the first service information comprises sign-in information;
the second service information includes order information.
According to an embodiment of the present disclosure, any plurality of the first determining module 610, the associating module 620, and the migrating module 630 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determining module 610, the associating module 620, and the migrating module 630 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the first determining module 610, the associating module 620 and the migrating module 630 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
Fig. 7 schematically shows a block diagram of an electronic device adapted to implement a service information migration method according to an embodiment of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 700 may also include input/output (I/O) interface 705, which input/output (I/O) interface 705 is also connected to bus 704, according to an embodiment of the present disclosure. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM702 and/or the RAM 703 and/or one or more memories other than the ROM702 and the RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the business information migration method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 701. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, languages such as JavaC + +, python, "C" language or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A service information migration method comprises the following steps:
determining first service information needing to be migrated from a first service form according to a first service state and a first retention time of the first service information to obtain first migration service information, wherein the first service form comprises at least one piece of first service information;
determining second service information associated with the first migration service information from a second service form according to an initial association relation list to obtain second migration service information, wherein the initial association relation list records the association relation between the first service information and the second service information;
and migrating the first migration service information and the second migration service information to a historical service form.
2. The method according to claim 1, wherein the determining, according to the first service state and the first retention time of the first service information, the first service information to be migrated from the first service form, and obtaining the first migration service information includes:
and in the first service form, determining the first service information of which the first service state is service completion and the first retention time is greater than or equal to a first preset retention time threshold as the first service information needing to be migrated, and obtaining the first migration service information.
3. The method of claim 1, further comprising:
determining target second service information from the second migration service information according to a preset target condition;
and deleting the first migration service information from the first service form and the target second service information from the second service form according to a preset deletion rule.
4. The method of claim 3, wherein the first migration service information has a first target identification, and the target second service information has a second target identification;
the deleting the first migration service information from the first service form and the target second service information from the second service form according to a preset deletion rule includes:
determining first service information associated with the target second service information from the first service form according to the initial association relation list;
determining first service information associated with the target second service information as first associated service information;
determining second business information associated with the first associated business information from the second business form according to the initial association relation list;
determining second service information associated with the first associated service information as second associated service information;
iteratively updating the first associated service information and the second associated service information according to a preset updating rule to obtain a first associated service information set and a second associated service information set;
determining first associated service information with a first target identifier in the first associated service information set as first target associated service information, and determining second associated service information with a second target identifier in the second associated service information set as second target associated service information,
and deleting the first migration service information which is the same as the first target associated service information from the first service form, and deleting the target second service information which is the same as the second target associated service information from the second service form.
5. The method of claim 3, wherein the determining target second service information from the second migrated service information according to a preset target condition comprises:
determining second migration service information of which the second retention time of the second migration service information is greater than or equal to a second preset retention time threshold value as candidate second service information;
and determining the target second service information according to the second service state of the candidate second service information.
6. The method of claim 5, wherein the determining the target second traffic information according to the second traffic state of the candidate second traffic information comprises:
determining first service information associated with the candidate second service information from the first service form according to the initial association relation list;
and determining the candidate second service information as the target second service information under the condition that the first service state of the first service information associated with the candidate second service information is service completion.
7. The method of claim 1, wherein the historical traffic form comprises: a first historical service form and a second historical service form;
the migrating the first migration service information and the second migration service information to a historical service form includes:
migrating the first migration service information to the first historical service form;
migrating second migration service information to the second historical service form; and
and constructing a migration association relation list in the historical service form according to the initial association relation list so as to record the association relation between the first migration service information and the second migration service information through the migration association relation list.
8. The method of claim 1, wherein,
the first service information comprises sign-in information;
the second service information includes order information.
9. A service information migration apparatus comprising:
the first determining module is used for determining first service information to be migrated from a first service form according to a first service state and a first retention time of the first service information to obtain first migration service information, wherein the first service form comprises at least one piece of the first service information;
the association module is used for determining second service information associated with the first migration service information from a second service form according to an initial association relation list to obtain second migration service information, wherein the initial association relation list records the association relation between the first service information and the second service information; and
and the migration module is used for migrating the first migration service information and the second migration service information to a historical service form.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 8.
CN202111558092.1A 2021-12-17 2021-12-17 Service information migration method, device, equipment and medium Pending CN114218198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111558092.1A CN114218198A (en) 2021-12-17 2021-12-17 Service information migration method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111558092.1A CN114218198A (en) 2021-12-17 2021-12-17 Service information migration method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114218198A true CN114218198A (en) 2022-03-22

Family

ID=80704150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111558092.1A Pending CN114218198A (en) 2021-12-17 2021-12-17 Service information migration method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114218198A (en)

Similar Documents

Publication Publication Date Title
US11561972B2 (en) Query conversion for querying disparate data sources
CN111125107A (en) Data processing method, device, electronic equipment and medium
US20230194302A1 (en) Method of updating map data, electronic device and storage medium
CN115587575A (en) Data table creation method, target data query method, device and equipment
CN111857674A (en) Business product generation method and device, electronic equipment and readable storage medium
CN113076224A (en) Data backup method, data backup system, electronic device and readable storage medium
CN113535726A (en) Database capacity expansion method and device
CN111258988A (en) Asset management method, device, electronic device, and medium
CN114443663A (en) Data table processing method, device, equipment and medium
CN115904527A (en) Data processing method, device, equipment and medium
CN114218198A (en) Service information migration method, device, equipment and medium
CN114281704A (en) Website testing method and device, electronic equipment and medium
CN114218283A (en) Abnormality detection method, apparatus, device, and medium
CN114201508A (en) Data processing method, data processing apparatus, electronic device, and storage medium
CN114003659A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN113468244A (en) Atmospheric environmental pollution source management system, method, electronic device and storage medium
CN113132400A (en) Business processing method, device, computer system and storage medium
CN112148705A (en) Data migration method and device
CN114268558B (en) Method, device, equipment and medium for generating monitoring graph
CN111914065B (en) Short message content verification method, device, computer system and computer readable medium
CN114218160A (en) Log processing method and device, electronic equipment and medium
CN113362097B (en) User determination method and device
CN114218330A (en) ES cluster selection method, ES cluster selection device, ES cluster selection apparatus, ES cluster selection medium, and program product
CN115048460A (en) Data processing method and device, electronic equipment and storage medium
CN114329612A (en) Sensitive data identification method and device, electronic equipment and storage medium

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