Information processing method and apparatus
Patent Information
- Application Number
- CN202211026441.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2042-08-25
AI Technical Summary
[0002]随着互联网技术的发展以及信息时代的到来,需要进行存储的信息量呈爆发式增长,存储系统的存储压力也日渐增大,对于数据库中用于存储信息的信息表来说,由于信息表在创建时即限定了信息存储的数量,当需要存储的信息量超出信息表的存储能力时,则无法实现信息的存储,再单独创建新的信息表用于存储信息则需要考虑现有的判断逻辑、处理逻辑等,这将大幅度提高工作人员的工作量,相应的,在进行信息读取时,由于需要读取新创建的信息表中存储的信息,也会导致信息读取不准确,信息可读性低等问题,因此,亟需一种信息处理方法以解决上述问题
[0062] The information processing method provided in this application involves receiving an information retrieval request for a virtual service; determining a target information table in a service database associated with the virtual service and a mapping information table in memory based on the identification information carried in the information retrieval request; reading the mapping information corresponding to the information retrieval request from the mapping information table; generating target information based on the storage information of the target information table and the mapping information; and using the target information as a response to the information retrieval request. During information retrieval, the target information table in the service database and the mapping information table in memory can be determined based on the identification information, and then the target information can be retrieved based on the target information table and the mapping information table, thereby improving the readability and accuracy of the target information retrieval.
Smart Images

Figure CN115422270B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an information processing method. This application also relates to an information storage method, an information processing apparatus, an information storage apparatus, a computing device, and a computer-readable storage medium. Background Technology
[0002] With the development of internet technology and the arrival of the information age, the amount of information that needs to be stored has exploded, and the storage pressure on storage systems has also increased day by day. For information tables in databases used to store information, the amount of information that can be stored is limited when the information table is created. When the amount of information that needs to be stored exceeds the storage capacity of the information table, the information cannot be stored. Creating a new information table for storing information requires considering the existing judgment logic and processing logic, which will significantly increase the workload of staff. Correspondingly, when reading information, it is necessary to read the information stored in the newly created information table, which will also lead to problems such as inaccurate information reading and low information readability. Therefore, there is an urgent need for an information processing method to solve the above problems. Summary of the Invention
[0003] In view of the above, embodiments of this application provide an information processing method to address the technical deficiencies existing in the prior art. Embodiments of this application also provide an information storage method, an information processing apparatus, an information storage apparatus, a computing device, and a computer-readable storage medium.
[0004] According to a first aspect of the embodiments of this application, an information processing method is provided, including:
[0005] Receive information retrieval requests for virtual services;
[0006] Based on the identification information carried in the information acquisition request, the target information table is determined in the business database associated with the virtual service, and the mapping information table is determined in memory;
[0007] Read the mapping information corresponding to the information retrieval request from the mapping information table;
[0008] Target information is generated based on the stored information in the target information table and the mapping information, and the target information is used as a response to the information acquisition request.
[0009] Optionally, before the step of receiving the information retrieval request for the virtual service is executed, the method further includes:
[0010] Receive information storage requests for the virtual service;
[0011] Based on the identification information carried in the information storage request, the target information table is determined in the business database associated with the virtual service;
[0012] If the target information table does not meet the information storage conditions, the mapping information is stored in the mapping information table associated with the target information table.
[0013] Optionally, storing virtual business information in a memory-based mapping information table associated with the target information table when the target information table does not meet the information storage conditions includes:
[0014] If the target information table does not meet the information storage conditions, read the mapping relationship information stored in the target information table, and determine the mapping information table based on the mapping relationship information;
[0015] Read the storage status information corresponding to the mapping information table, and determine the mapping information based on the storage status information;
[0016] The mapping information is stored in the mapping information table.
[0017] Optionally, before the step of storing the mapping information in the mapping information table associated with the target information table is executed when the target information table does not meet the information storage conditions, the method further includes:
[0018] Create a mapping information table in memory that is associated with the target information table;
[0019] Establish the mapping relationship between the target information table and the mapping information table, and store it in the target information table.
[0020] Optionally, before the step of receiving the information retrieval request for the virtual service is executed, the method further includes:
[0021] Receive operation requests submitted for virtual services;
[0022] The operation request is parsed to obtain identification information;
[0023] An information retrieval request is generated based on the identification information.
[0024] Optionally, after the step of generating target information based on the stored information of the target information table and the mapping information, and using the target information as a response to the information acquisition request, the method further includes:
[0025] In the business database, determine the virtual object data table associated with the target information; or, in the target database storing the virtual object data corresponding to the virtual business, determine the virtual object data table associated with the target information.
[0026] Read the target virtual object data corresponding to the target information from the virtual object data table, and use the target virtual object data as feedback for the operation request.
[0027] Optionally, determining the target information table in the business database associated with the virtual service and determining the mapping information table in memory based on the identification information carried in the information acquisition request includes:
[0028] The identification information is obtained by parsing the information retrieval request;
[0029] Based on the identification information, a target information table is determined in the business database associated with the virtual business;
[0030] Based on the mapping relationship information stored in the target information table, the mapping information table is determined in memory.
[0031] Optionally, after parsing the information acquisition request to obtain the identification information, the method further includes:
[0032] Determine the identifier type corresponding to the identifier information;
[0033] The target information table corresponding to the identifier type is determined from at least one information table contained in the business database.
[0034] Optionally, before the step of reading the mapping information corresponding to the information acquisition request from the mapping information table is executed, the method further includes:
[0035] Determine whether there is any information to be read in the target information table that corresponds to the information acquisition request;
[0036] If so, read the information to be read corresponding to the information acquisition request from the target information table, and use the information to be read as the response to the information acquisition request;
[0037] If not, proceed with the step of reading the mapping information corresponding to the information retrieval request from the mapping information table.
[0038] Optionally, reading the mapping information corresponding to the information acquisition request from the mapping information table includes:
[0039] Identify the identifier record that matches the identifier information in the mapping information table;
[0040] The mapping information corresponding to the information retrieval request is determined based on the identification record.
[0041] Optionally, generating target information based on the stored information of the target information table and the mapping information includes:
[0042] The information storage threshold corresponding to the target information table is determined based on the stored information in the target information table;
[0043] The calculation result is obtained by calculating the storage threshold and the mapping value corresponding to the mapping information, and the calculation result is used as the target information.
[0044] According to a second aspect of the embodiments of this application, an information processing apparatus is provided, comprising:
[0045] The receiving module is configured to receive information retrieval requests for virtual services.
[0046] The determination module is configured to determine the target information table in the business database associated with the virtual service based on the identification information carried in the request, and to determine the mapping information table in memory.
[0047] The reading module is configured to read the mapping information corresponding to the information acquisition request from the mapping information table;
[0048] The generation module is configured to generate target information based on the stored information of the target information table and the mapping information, and to use the target information as a response to the information acquisition request.
[0049] According to a third aspect of the embodiments of this application, an information storage method is provided, comprising:
[0050] Receive information retrieval requests for virtual services, and determine the target information table in the business database associated with the virtual service based on the identification information carried in the information storage request;
[0051] If the target information table does not meet the information storage conditions, the mapping information table is determined in memory based on the mapping relationship information stored in the target information table;
[0052] The mapping information is determined based on the storage status information corresponding to the mapping information table, and the mapping information is stored in the mapping information table.
[0053] According to a fourth aspect of the embodiments of this application, an information storage device is provided, comprising:
[0054] The information determination module is configured to receive an information acquisition request for a virtual service, and determine a target information table in the business database associated with the virtual service based on the identification information carried in the information storage request.
[0055] The information table determination module is configured to determine the mapping information table in memory based on the mapping relationship information stored in the target information table when the target information table does not meet the information storage conditions.
[0056] The information storage module is configured to determine the mapping information based on the storage status information corresponding to the mapping information table, and store the mapping information in the mapping information table.
[0057] According to a fifth aspect of the embodiments of this application, a computing device is provided, comprising:
[0058] Memory and processor;
[0059] The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions to implement the steps of the information processing method.
[0060] According to a sixth aspect of the present application, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of the information processing method.
[0061] According to a seventh aspect of the present application, a chip is provided that stores a computer program, which, when executed by the chip, implements the steps of the information processing method.
[0062] The information processing method provided in this application involves receiving an information retrieval request for a virtual service; determining a target information table in a service database associated with the virtual service and a mapping information table in memory based on the identification information carried in the information retrieval request; reading the mapping information corresponding to the information retrieval request from the mapping information table; generating target information based on the storage information of the target information table and the mapping information; and using the target information as a response to the information retrieval request. During information retrieval, the target information table in the service database and the mapping information table in memory can be determined based on the identification information, and then the target information can be retrieved based on the target information table and the mapping information table, thereby improving the readability and accuracy of the target information retrieval. Attached Figure Description
[0063] Figure 1 This is a schematic diagram of the structure of an information processing method provided in an embodiment of this application;
[0064] Figure 2 This is a flowchart of an information processing method provided in an embodiment of this application;
[0065] Figure 3 This is a flowchart illustrating an information processing method for processing game item information, provided in one embodiment of this application.
[0066] Figure 4 This is a schematic diagram of the structure of an information processing device provided in an embodiment of this application;
[0067] Figure 5 This is a flowchart of an information storage method provided in an embodiment of this application;
[0068] Figure 6 This is a schematic diagram of the structure of an information storage device provided in an embodiment of this application;
[0069] Figure 7 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation
[0070] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0071] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.
[0072] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first.
[0073] This application provides an information processing method. This application also relates to an information storage method, an information processing apparatus, an information storage apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0074] See Figure 1The schematic diagram of the information processing method shown illustrates that the client submits an information retrieval request to the server. Upon receiving the request, the server retrieves the information and determines the target information table in the database of the storage system based on the identification information carried in the request. Based on the mapping relationship information stored in the target information table, the server determines the mapping information table in memory that has a mapping relationship with the target information table. Then, based on the stored information corresponding to the target information table and the mapping information retrieved from the mapping information table, the server generates the target information, which is the response to the information retrieval request. The server then sends the target information back to the client, thus completing the information retrieval process.
[0075] Figure 2 A flowchart of an information processing method according to an embodiment of this application is shown, which specifically includes the following steps:
[0076] Step S202: Receive information retrieval request for virtual services.
[0077] Specifically, virtual business refers to things that need to be processed. The specific things corresponding to virtual businesses vary depending on the business scenario. In a game scenario, when changing equipment or items for game characters, or updating game scenes, selecting and using a new piece of equipment or changing a game scene requires submitting an information retrieval request for the new equipment or game scene, thereby obtaining the business information corresponding to the new equipment or game scene. In an information query scenario, such as searching for books on a book website, the book search task can be considered a virtual business. Searching for the desired book yields information related to the book. Searching for movies on a movie website can also be considered a virtual business. When searching for specific personnel in a personnel management system, the personnel search task is a virtual business. This embodiment does not limit the scenarios for virtual businesses in any way.
[0078] Therefore, in information retrieval scenarios, for virtual services that require information retrieval, the information to be retrieved can be obtained by submitting an information retrieval request to the server. Once the server receives the information retrieval request for the virtual service, it can then parse the request and generate corresponding feedback information.
[0079] Furthermore, information for virtual services can be stored at any time before a request to retrieve information for virtual services is received, as specifically implemented as follows:
[0080] Receive an information storage request for the virtual service; determine a target information table in the service database associated with the virtual service based on the identification information carried in the information storage request; if the target information table does not meet the information storage conditions, store the mapping information in the mapping information table associated with the target information table.
[0081] Specifically, an information storage request refers to a computer instruction submitted to a server or client when there is a need for information storage for a virtual business, used to implement information storage. Identification information refers to the identifier used to represent the information to be stored when submitting an information storage request. In the scenario of storing game items, the identification information can be the name, number, etc. of the game item; in the scenario of storing books, the identification information can be the name, number, etc. of the book; in the scenario of storing personnel information, the identification information can be the name, number, code, etc. of the personnel. A business database refers to a database used to store information related to virtual businesses; a target information table refers to an information table stored in the database used to store information related to virtual businesses; a mapping information table refers to an information table that has a mapping relationship with the target information table and is used to store mapping information, wherein the mapping information table is stored in memory. Correspondingly, mapping information refers to information stored in the mapping information table when information cannot be stored in the target information table and is therefore stored therein.
[0082] Based on this, when there is an information storage requirement, an information storage request is submitted to the server or client. Upon receiving an information storage request for a virtual business, the request is parsed to obtain the identification information corresponding to the information to be stored. Based on the parsed identification information, the target information table is determined in the business database associated with the virtual business, and it is determined whether the target information table can be stored. If the target information table does not meet the information storage conditions, a mapping information table associated with the target information table is determined in memory, and the mapping information is stored in the mapping information table in memory.
[0083] For example, when entering newly published books into a library management system, for this book storage operation, an information storage request is submitted based on the book's entry number in the library management system, the book's name, author, publication date, and other information. This is used to store the book's relevant information in the book database. Parsing the information storage request yields the book "Animal Encyclopedia," with the book's name serving as its identifier. During information storage, if the book information table in the book database reaches its storage limit and cannot store more information, the book information is stored in a memory-based book information mapping table that has a mapping relationship with the book information table.
[0084] In summary, when the target information table does not meet the information storage conditions, the mapping information is stored in the mapping information table associated with the target information table. This not only completes the information storage but also avoids information storage failure due to the target information table's inability to store information.
[0085] Furthermore, when completing information storage, since the target information table does not meet the information storage conditions, the information to be stored can be stored in a mapping information table that has a mapping relationship with the target information table. The specific implementation is as follows:
[0086] If the target information table does not meet the information storage conditions, read the mapping relationship information stored in the target information table, and determine the mapping information table based on the mapping relationship information; read the storage status information corresponding to the mapping information table, and determine the mapping information based on the storage status information; and store the mapping information in the mapping information table.
[0087] Specifically, mapping relationship information refers to information used to represent the association between the target information table and the mapping information table. The mapping relationship information can be the association information between the target information table and the mapping information table. Based on the mapping relationship information, the target information table and the mapping information table that are associated with the target information table can be determined, the mapping relationship between the target information table and the mapping information table can be established, and then the mapping relationship information is generated and stored in the target information table. Storage status information refers to the current information storage status in the mapping information table. When each row of records stored in the mapping information table corresponds to a sequence number, since the sequence number is generated in an auto-incrementing manner, the storage status information is the number of table records currently stored in the mapping information table.
[0088] Therefore, when storing information, it is necessary to determine whether the target information table can store information. If the target information table does not meet the information storage conditions, that is, if the target information table cannot store information, the stored mapping relationship information is read from the target information table. Based on the mapping relationship information, the mapping information table that has a mapping relationship with the target information table can be determined in memory. Then, the storage status information corresponding to the mapping information table is read, the mapping information is determined based on the storage status information, and the mapping information is stored in the mapping information table.
[0089] Using the previous example, when storing information related to the book "Animal Encyclopedia", since the maximum number of entries in the book information table of the book library is 256, it is not possible to store the relevant information of the 356th book in the book information table. According to the mapping relationship stored in the book information table: Book Information Table 1 - Mapping Information Table 1, the mapping information table 1 with the mapping relationship with the book information table is determined. According to the current storage ID 99 of the mapping information table 1, the ID 100 corresponding to the next piece of information to be stored can be determined. Therefore, ID 100 is the mapping information. ID 100 and the book "Animal Encyclopedia" are stored in the mapping information table.
[0090] In summary, when the target information table does not meet the information storage conditions, a mapping information table is determined based on the mapping relationship stored in the target information table. Then, the mapping information is determined based on the storage status information of the mapping information table, and the mapping information is stored in the mapping information table. This achieves information storage corresponding to the information storage request, and enables information storage to be completed without expanding the target information table.
[0091] Furthermore, before storing information in the target information table, to avoid the problem of being unable to store information in the target information table due to the target information table not meeting the information storage conditions, a mapping information table can be created in memory in advance. The specific implementation is as follows:
[0092] Create a mapping information table in memory that is associated with the target information table; establish the mapping relationship information between the target information table and the mapping information table, and store it in the target information table.
[0093] Based on this, at any point before storing information into the target information table, a mapping information table corresponding to the target information table can be created first. Therefore, when storing information into the target information table, if the target information table does not meet the information storage conditions, the information will be stored in the mapping information table. A mapping information table associated with the target information table is created in memory, establishing the association between the mapping information table and the target information table—that is, establishing the mapping relationship information corresponding to the target information table and the mapping information table. This mapping relationship information is stored in the target information table so that when storing information into the target information table later, the mapping information table can be found through the mapping relationship information stored in the target information table, and the information can be stored in the mapping information table.
[0094] Continuing with the previous example, a mapping information table 1 is created in memory, and a mapping relationship is established between mapping information table 1 and book information table 1. The mapping relationship information, book information table 1 - mapping information table 1, is stored in book information table 1. Therefore, when storing book information in book information table 1, the book information can be stored in mapping information table 1, which has a mapping relationship with book information table 1.
[0095] In summary, by creating a mapping information table that has a mapping relationship with the target information table, the information to be stored can be stored in the mapping information table when there is a need for information storage in the future. In addition, even if the target information table meets the information storage conditions, the information to be stored can still be stored in the mapping information table, thereby improving the flexibility of information storage.
[0096] Furthermore, the information retrieval request is used to obtain information corresponding to the identifier information. In the case of book information retrieval, in addition to reading the book's name, it is also necessary to obtain information such as the book's author, category, and publication date. Therefore, this can be achieved by submitting an operation request for the book information retrieval task, as detailed below:
[0097] Receive an operation request submitted for a virtual service; parse the operation request to obtain identification information; generate an information retrieval request based on the identification information.
[0098] Specifically, an operation request refers to a computer instruction submitted for a virtual service, including but not limited to operations such as querying, writing, deleting, and modifying. The operation request carries operation information, which can be obtained by parsing the operation request. Correspondingly, the identification information is the information obtained by parsing the operation request. The identification information corresponds to the virtual service. In a game scenario, when the virtual service is to read the specified item information from the item table, the identification information can be the name of the item. In a book query scenario, the identification information can be the name of the book to be queried. In a personnel search scenario, the identification information can be the name or code of the person to be searched.
[0099] Therefore, when there is a processing requirement for a virtual service, an operation request is submitted to the server or client for that virtual service. After receiving the operation request, the server or client parses it to obtain the identification information carried in the request. Then, an information retrieval request is generated based on the identification information to achieve information retrieval.
[0100] Using the previous example, when searching for books in the library management system, you can search for books by entering relevant information. The most common way is to enter the book title or keywords of the book title. When searching for the book "Animal Encyclopedia", a query request is submitted based on the book title. After receiving the query request, the server or client parses the query request to obtain "Animal Encyclopedia", generates an information retrieval request based on "Animal Encyclopedia", and then reads the information related to the book "Animal Encyclopedia" from the book information table.
[0101] In summary, for virtual business operation requests, an information retrieval request is generated based on the identification information obtained from parsing the operation request, thereby enabling the retrieval of relevant information of the virtual business and improving the accuracy of information retrieval.
[0102] Step S204: Based on the identification information carried in the information acquisition request, determine the target information table in the business database associated with the virtual service, and determine the mapping information table in memory.
[0103] Specifically, when an information retrieval request for a virtual service is received, the information retrieval request is parsed to obtain the identification information carried in the information retrieval request. Then, the target information table and the mapping information table are determined based on the identification information. The target information table is stored in the business database, while the mapping information table is stored in memory.
[0104] Based on this, when an information retrieval request for a virtual service is received, the information retrieval request is parsed to obtain the identification information carried in the information retrieval request. Then, based on the identification information, a target information table matching the identification information is determined in the business database, and a mapping information table matching the target information table is determined in memory based on the mapping relationship information stored in the target information table.
[0105] Furthermore, when determining the target information table and the mapping information table based on the identification information, the mapping information table can be determined in memory based on the mapping relationship information stored in the target information table. The specific implementation is as follows:
[0106] The information acquisition request is parsed to obtain the identification information; a target information table is determined in the business database associated with the virtual business based on the identification information; and a mapping information table is determined in memory according to the mapping relationship information stored in the target information table.
[0107] Based on this, upon receiving an information retrieval request, the request is parsed to obtain identification information. The identification information is then matched against multiple information tables in the business database associated with the virtual business to determine the target information table. The mapping relationship information stored in the target information table is read, and the mapping information table is determined in memory based on the mapping relationship information stored in the target information table.
[0108] Following the previous example, after receiving an information retrieval request for the book "Animal Encyclopedia", the request is parsed to obtain the identifier information "Animal Encyclopedia". Based on "Animal Encyclopedia", the book information table 1 is determined in the book database. The mapping relationship information stored in the book information table 1 is read: Book Information Table 1 - Mapping Information Table 1. Based on the mapping relationship information, the mapping information table 1 is determined in memory.
[0109] In summary, by parsing the information retrieval request to obtain identification information, then determining the target information table in the business database based on the identification information, and determining the mapping information table in memory based on the mapping relationship information stored in the target information table, and then reading the information from the mapping information table, the accuracy of information retrieval is improved.
[0110] Furthermore, after parsing the information retrieval request to obtain the identification information, the target information table corresponding to the identification information can be determined in the business database based on the identification type corresponding to the identification information. The specific implementation is as follows:
[0111] Determine the identifier type corresponding to the identifier information; determine the target information table corresponding to the identifier type in at least one information table contained in the business database.
[0112] Specifically, the identifier type refers to the type information corresponding to the identifier information. When the identifier information is the name of a game item, the identifier type is the category information corresponding to the game item. For example, knives, swords, bows and arrows, hammers, and spears are all weapons, so the identifier type can be "weapon"; backpacks, necklaces, jade pendants, and belts are all accessories, so the identifier information can be "accessory". When the identifier information is the name of a book, the identifier type can be the category of the book, including but not limited to humanities, social sciences, and science.
[0113] Based on this, after obtaining the identification information carried in the information acquisition request, a matching information table is included in the business database according to the identification type corresponding to the identification information, and the information table in the business database that matches the identification type is used as the target information table corresponding to the identification information.
[0114] Following the previous example, after receiving an information retrieval request for the book "Animal Encyclopedia", the information retrieval request is parsed to obtain the identification information "Animal Encyclopedia", and the book information table 1 corresponding to the identification type "science" is determined in the book database.
[0115] In summary, determining the target information table in the business database based on the identifier type corresponding to the identifier information improves the accuracy of target information table determination.
[0116] Step S206: Read the mapping information corresponding to the information acquisition request from the mapping information table.
[0117] Specifically, after determining the target information table in the business database associated with the virtual business and the mapping information table in memory based on the identification information carried in the information acquisition request, the mapping information corresponding to the information acquisition request can be read from the mapping information table. The mapping information table refers to the information table used to store mapping information that has a mapping relationship with the target information table. Correspondingly, the mapping information refers to the information stored in the mapping information table when the information cannot be stored in the target information table and is therefore stored in the mapping information table. The mapping information includes, but is not limited to, the ID information stored in the mapping information table.
[0118] Based on this, after determining the target information table in the business database associated with the virtual service and the mapping information table in memory according to the identification information carried in the information retrieval request, the mapping information corresponding to the identification information is read from the mapping information table. This facilitates the subsequent determination of the target information corresponding to the information retrieval request based on the mapping information. In practical applications, the mapping information can be read from the mapping information table based on the mapping relationship information stored in the target information table.
[0119] Furthermore, when reading information based on an information retrieval request, since the information to be read may be stored in the target information table or the mapping information table, it is necessary to determine whether the target information table contains the information to be retrieved corresponding to the information retrieval request. The specific implementation is as follows:
[0120] Determine whether there is any information to be read corresponding to the information acquisition request in the target information table; if so, read the information to be read corresponding to the information acquisition request in the target information table and use the information to be read as a response to the information acquisition request; if not, execute the step of reading the mapping information corresponding to the information acquisition request in the mapping information table.
[0121] Specifically, the information to be read refers to the information corresponding to the information retrieval request. The information to be read is the feedback of the information retrieval request. If the information to be read is read from the target information table, it means that the information to be retrieved corresponding to the information retrieval information is stored in the target information table, and can be determined by reading the target information table.
[0122] Based on this, when reading information based on an information retrieval request, it is determined whether the target information table contains information to be read corresponding to the information retrieval request. If it exists, it means that the information was directly stored in the target information table during information storage. In this case, the information to be read corresponding to the information retrieval request can be directly read from the target information table, and the information to be read can be used as the response to the information retrieval request. If it does not exist, it means that information storage cannot be performed due to storage requirements or insufficient storage space in the target information table. In this case, the information is stored in the mapping information table. In this case, the mapping information corresponding to the information retrieval request can be read from the mapping information table, which has a mapping relationship with the target information table.
[0123] Using the previous example, when retrieving relevant book information for the book "Animal Encyclopedia", determine whether the book information table stores relevant book information for the book "Animal Encyclopedia". If so, retrieve the relevant book information for the book "Animal Encyclopedia" from the book information table; otherwise, retrieve the relevant book information for the book "Animal Encyclopedia" from the mapping information table that has a mapping relationship with the book information table.
[0124] In summary, before reading the mapping information, it is determined whether the target information table stores the information to be read. If so, it is read directly from the target information table, thereby improving the speed of information reading.
[0125] Furthermore, when reading mapping information from the mapping information table, the tag record that matches the identification information can be identified in the mapping information table, and then the mapping information can be read. The specific implementation is as follows:
[0126] Identify the identifier record that matches the identifier information in the mapping information table; determine the mapping information corresponding to the information acquisition request based on the identifier record.
[0127] Specifically, an identifier record refers to a table record stored in the mapping information table, that is, a piece of information stored in the mapping information table.
[0128] Based on this, after determining the identification information, the mapping information table stored in memory is queried based on the identification information. The identification record that matches the identification information is determined in the mapping information table, the information corresponding to the identification record is read, and then the read information is used as the mapping information corresponding to the information acquisition request.
[0129] Continuing with the previous example, the query request is parsed to obtain the identifier "Animal Encyclopedia". Based on the identifier "Animal Encyclopedia", the mapping information table is queried to determine the table record corresponding to the identifier "Animal Encyclopedia": 100-Animal Encyclopedia. In the table record "100-Animal Encyclopedia", "100" is the mapping information corresponding to the information retrieval request.
[0130] In summary, by determining the identifier record matching the identifier information in the mapping information table, and then reading the mapping information corresponding to the information acquisition request in the mapping information table, the accuracy of information reading is improved. Step S208: Generate target information based on the stored information of the target information table and the mapping information, and use the target information as a response to the information acquisition request.
[0131] Specifically, after reading the mapping information corresponding to the information acquisition request from the mapping information table, the target information can be generated based on the mapping information and the storage information of the target information table. The target information can then serve as the response to the information acquisition request. The storage information refers to the storage space information of the target information table, that is, the number of information entries that can be stored in the target information table. When the target information table can only store 2 bytes of data, the upper limit of the number of information entries that can be stored in the target information table is 65,535.
[0132] Based on this, after reading the mapping information from the mapping information table, the storage information corresponding to the target information table is determined, and then the target information is generated based on the storage information and mapping information of the target information table, and the target information is used as the response to the information acquisition request.
[0133] Furthermore, when generating target information based on the stored information and mapping information of the target information table, the target information can be calculated from the stored information and mapping information of the target information table. The specific implementation is as follows:
[0134] The information storage threshold corresponding to the target information table is determined based on the stored information in the target information table;
[0135] The calculation result is obtained by calculating the storage threshold and the mapping value corresponding to the mapping information, and the calculation result is used as the target information.
[0136] Specifically, stored information refers to the attribute information corresponding to the target information table, including the storage capacity of the target information table. Correspondingly, the storage capacity is the information storage threshold of the target information table, representing the storage capacity of the target information table.
[0137] Based on this, the storage information of the target information table is determined, and the corresponding information storage threshold is determined according to the storage information of the target information table. The mapping value is determined based on the mapping information, and the calculation result is obtained by calculating the storage threshold and the corresponding mapping value. The target information can then be used as the response to the information retrieval request.
[0138] Using the previous example, we determine the storage information 256 in the book information table. 256 is the information storage threshold of the book information table. We determine the mapping value 100 corresponding to the mapping information ID100. We sum the storage information 256 and the mapping value 100 to obtain the target information 356.
[0139] In summary, by determining the information storage threshold corresponding to the target information table, and then calculating based on the information storage threshold and the mapping value, the accuracy of target information determination is improved.
[0140] Furthermore, after determining the target information, the data corresponding to the operation request can be read based on the target information, as specifically implemented as follows:
[0141] In the business database, determine the virtual object data table associated with the target information; or, in the target database storing virtual object data corresponding to the virtual business, determine the virtual object data table associated with the target information; read the target virtual object data corresponding to the target information from the virtual object data table, and use the target virtual object data as feedback for the operation request.
[0142] Specifically, a business data table refers to a data table used to store business data related to virtual business, and the data stored in the business data table is associated with the target information table; the target database refers to a database used to store data tables related to virtual business; correspondingly, virtual object data refers to business data related to virtual business, the virtual object data table refers to a data table used to store virtual object data, and the target virtual object data refers to the data in the virtual object data table corresponding to the operation request.
[0143] Based on this, when the virtual object data table is stored in the business database, the virtual object data table associated with the target information is determined in the business database. Alternatively, when the virtual object data table is not stored in the business database but in the target database that stores virtual object data corresponding to virtual business operations, the virtual object data table associated with the target information is determined in the target database that stores virtual object data corresponding to virtual business operations. The target virtual object data corresponding to the target information is read from the virtual object data table, and the target virtual object data is used as feedback for the operation request.
[0144] Following the previous example, after determining the target information 356, and assuming that a virtual object data table corresponding to the target information exists in the business database for storing virtual object data, the data related to the book "Animal Encyclopedia," such as the author and publication date, corresponding to the target information 356, is read from the virtual object data table. This data serves as the response to the book reading request. Alternatively, if the virtual object data table storing virtual object data is stored in the target database, the data related to the book "Animal Encyclopedia," such as the author and publication date, corresponding to the target information 356, is read from the virtual object data table in the target database. This data serves as the response to the book reading request. The information processing method provided in this application receives an information acquisition request for a virtual business; determines a target information table in the business database associated with the virtual business and a mapping information table in memory based on the identification information carried in the information acquisition request; reads the mapping information corresponding to the information acquisition request from the mapping information table; generates target information based on the storage information of the target information table and the mapping information; and uses the target information as the response to the information acquisition request. When acquiring information, the target information table in the business database and the mapping information table in memory can be determined based on the identification information. Then, the target information can be obtained based on the target information table and the mapping information table, thereby improving the readability of the target information and the accuracy of the target information acquisition.
[0145] The following is in conjunction with the appendix Figure 3 Taking the application of the information processing method provided in this application to game item information processing as an example, the information processing method will be further explained. Among other things, Figure 3 This application provides a flowchart illustrating an information processing method for processing game item information according to an embodiment of the present application, which specifically includes the following steps:
[0146] Step S302: Receive information storage request for virtual services.
[0147] In the virtual service for storing game items, a request for information storage is received for the game item "Knife", whose number is 75535.
[0148] Step S304: Determine the target information table in the business database associated with the virtual business based on the identification information carried in the information storage request.
[0149] Based on the identification information "knife" carried in the information storage request, search the weapon table corresponding to the game item "knife" in the game item database corresponding to the virtual business of game item storage.
[0150] Step S306: If the target information table does not meet the information storage conditions, read the mapping relationship information stored in the target information table, and determine the mapping information table in memory based on the mapping relationship information.
[0151] If the maximum storage number of the weapon table in the game item database is 65535, then the game item "knife" with the number 75535 cannot be stored in the weapon table included in the game item database. The mapping relationship information stored in the weapon table is read: weapon table - mapping table 1. Then, based on the mapping relationship information, the mapping table 1 used to store the relevant information of the game item "knife" is determined in memory.
[0152] Step S308: Read the storage status information corresponding to the mapping information table, and determine the mapping information based on the storage status information.
[0153] Determine the current information storage status of mapping table 1 in memory. Currently, mapping table 1 stores 9999 pieces of information. Then, store the number of the game item "knife" as 10000, and 10000 is the mapping information.
[0154] Step S310: Store the mapping information in the mapping information table.
[0155] The mapping information 10000 is stored in mapping table 1, and the identifier information for the game item "knife" is also stored in mapping table 1. Furthermore, the attribute information of the game item "knife," such as its color, attack power, and wielder, is also stored in mapping table 1 in memory. Since mapping table 1 has a mapping relationship with the weapon table, it can be considered part of the weapon table; that is, mapping table 1 is an extended table stored in memory corresponding to the weapon table. Storing the relevant attribute information of "knife" in mapping table 1 thus creates a situation at the business level where the relevant attribute information of "knife" is also stored in the weapon table.
[0156] Step S312: Receive an operation request submitted for a virtual service, parse the operation request to obtain identification information, and generate an information retrieval request based on the identification information.
[0157] When reading data related to the game item "knife", submit a usage request for the game item "knife" by clicking the control or by any other means.
[0158] Step S314: Parse the information retrieval request to obtain identification information.
[0159] The usage request is parsed to obtain the identifier information "knife".
[0160] Step S316: Determine the target information table in the business database associated with the virtual business based on the identification information.
[0161] Based on the identifier "knife", search the game item database for the weapon list corresponding to the game item "knife".
[0162] Step S318: Determine the mapping information table in memory based on the mapping relationship information stored in the target information table.
[0163] Based on the mapping information stored in the weapon table: weapon table - mapping table 1, determine mapping table 1 in memory.
[0164] Step S320: Determine whether there is any information to be read in the target information table that corresponds to the information acquisition request. If yes, proceed to step S322; otherwise, proceed to step S324.
[0165] Determine if the weapon table stores the information corresponding to the "knife" to be read. If yes, it means that when storing the information corresponding to the game item "knife", it was directly stored in the weapon table; if no, it means that when storing the information corresponding to the game item "knife", the weapon table reached its storage limit, so the information corresponding to the game item "knife" was stored in a mapping table in memory that has a mapping relationship with the weapon table.
[0166] Step S322: Read the target information corresponding to the information acquisition request from the target information table, and use the target information as the response to the information acquisition request.
[0167] Retrieve information 75535 corresponding to the game item "knife" from the weapon table in the game item database.
[0168] Step S324: Read the mapping information corresponding to the information retrieval request from the mapping information table.
[0169] Read the information 10000 corresponding to the game item "knife" from the weapon list.
[0170] Step S326: Determine the information storage threshold corresponding to the target information table based on the stored information in the target information table.
[0171] The maximum storage limit for the weapon table is set to 65535.
[0172] Step S328: Calculate the mapping values corresponding to the storage threshold and mapping information to obtain the calculation results, and use the calculation results as the target information.
[0173] Based on the storage limit of 65535 in the weapon list and the information of 10000 corresponding to the game item "knife" read from the weapon list, the target information 75535 corresponding to the game item "knife" is obtained.
[0174] Step S330: Read the target virtual object data corresponding to the target information from the mapping information table, and use the target virtual object data as feedback for the operation request.
[0175] Based on target information 75535, read the attribute information of the game item "knife" corresponding to the game item "knife" in mapping table 1, such as color, attack power, and holder. The attribute information is the feedback for the use request submitted for the game item "knife".
[0176] In summary, the information processing method provided in this application can determine the target information table in the business database and the mapping information table in memory based on the identification information during information acquisition. Then, the target information is obtained based on the target information table and the mapping information table, thereby improving the readability and accuracy of the target information acquisition. By storing the mapping information in a mapping information table that has a mapping relationship with the target information table, the target information table is extended, avoiding version compatibility issues and the problems of large-scale modifications and high modification risks caused by altering existing judgment and processing logic. It also reduces the workload.
[0177] Corresponding to the above method embodiments, this application also provides information processing apparatus embodiments. Figure 4 A schematic diagram of the structure of an information processing apparatus according to an embodiment of this application is shown. Figure 4 As shown, the device includes:
[0178] The receiving module 402 is configured to receive information retrieval requests for virtual services;
[0179] The determination module 404 is configured to determine the target information table in the business database associated with the virtual service based on the identification information carried in the information acquisition request, and to determine the mapping information table in memory.
[0180] The reading module 406 is configured to read the mapping information corresponding to the information acquisition request from the mapping information table;
[0181] The generation module 408 is configured to generate target information based on the stored information of the target information table and the mapping information, and to use the target information as a response to the information acquisition request.
[0182] In an optional embodiment, the receiving module 402 is further configured to:
[0183] Receive information storage requests for the virtual service;
[0184] Based on the identification information carried in the information storage request, the target information table is determined in the business database associated with the virtual service;
[0185] If the target information table does not meet the information storage conditions, the mapping information is stored in the mapping information table associated with the target information table.
[0186] In an optional embodiment, the receiving module 402 is further configured to:
[0187] If the target information table does not meet the information storage conditions, read the mapping relationship information stored in the target information table, and determine the mapping information table based on the mapping relationship information;
[0188] Read the storage status information corresponding to the mapping information table, and determine the mapping information based on the storage status information;
[0189] The mapping information is stored in the mapping information table.
[0190] In an optional embodiment, the receiving module 402 is further configured to:
[0191] Create a mapping information table in memory that is associated with the target information table;
[0192] Establish the mapping relationship between the target information table and the mapping information table, and store it in the target information table.
[0193] In an optional embodiment, the receiving module 402 is further configured to:
[0194] Receive operation requests submitted for virtual services;
[0195] The operation request is parsed to obtain identification information;
[0196] An information retrieval request is generated based on the identification information.
[0197] In an optional embodiment, the generation module 408 is further configured to:
[0198] In the business database, determine the virtual object data table associated with the target information; or, in the target database storing the virtual object data corresponding to the virtual business, determine the virtual object data table associated with the target information.
[0199] Read the target virtual object data corresponding to the target information from the virtual object data table, and use the target virtual object data as feedback for the operation request.
[0200] In an optional embodiment, the determining module 404 is further configured to:
[0201] The identification information is obtained by parsing the information retrieval request;
[0202] Based on the identification information, a target information table is determined in the business database associated with the virtual business;
[0203] Based on the mapping relationship information stored in the target information table, the mapping information table is determined in memory.
[0204] In an optional embodiment, the determining module 404 is further configured to:
[0205] Determine the identifier type corresponding to the identifier information;
[0206] The target information table corresponding to the identifier type is determined from at least one information table contained in the business database.
[0207] In an optional embodiment, the reading module 406 is further configured to:
[0208] Determine whether there is any information to be read in the target information table that corresponds to the information acquisition request;
[0209] If so, read the information to be read corresponding to the information acquisition request from the target information table, and use the information to be read as the response to the information acquisition request;
[0210] If not, proceed with the step of reading the mapping information corresponding to the information retrieval request from the mapping information table.
[0211] In an optional embodiment, the reading module 406 is further configured to:
[0212] Identify the identifier record that matches the identifier information in the mapping information table;
[0213] The mapping information corresponding to the information retrieval request is determined based on the identification record.
[0214] In an optional embodiment, the generation module 408 is further configured to:
[0215] The information storage threshold corresponding to the target information table is determined based on the stored information in the target information table;
[0216] The calculation result is obtained by calculating the storage threshold and the mapping value corresponding to the mapping information, and the calculation result is used as the target information.
[0217] This application provides an information processing apparatus that receives an information retrieval request for a virtual service; determines a target information table in a service database associated with the virtual service and a mapping information table in memory based on the identification information carried in the information retrieval request; reads the mapping information corresponding to the information retrieval request from the mapping information table; generates target information based on the storage information of the target information table and the mapping information; and uses the target information as a response to the information retrieval request. During information retrieval, the target information table in the service database and the mapping information table in memory can be determined based on the identification information, and then the target information can be retrieved based on the target information table and the mapping information table, thereby improving the readability and accuracy of the target information retrieval.
[0218] The above is an illustrative scheme of an information processing device according to this embodiment. It should be noted that the technical solution of this information processing device and the technical solution of the aforementioned information processing method belong to the same concept. Details not described in detail in the technical solution of the information processing device can be found in the description of the technical solution of the aforementioned information processing method. Furthermore, the components in the device embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.
[0219] Figure 5 A flowchart of an information storage method according to an embodiment of this application is shown, which specifically includes the following steps:
[0220] Step S502: Receive an information retrieval request for a virtual service, and determine the target information table in the service database associated with the virtual service based on the identification information carried in the information storage request.
[0221] Step S504: If the target information table does not meet the information storage conditions, determine the mapping information table in memory according to the mapping relationship information stored in the target information table.
[0222] Step S506: Determine the mapping information based on the storage status information corresponding to the mapping information table, and store the mapping information in the mapping information table.
[0223] The information storage method provided in this application receives an information retrieval request for a virtual service and determines a target information table in the business database associated with the virtual service based on the identification information carried in the information storage request. If the target information table does not meet the information storage conditions, a mapping information table is determined in memory based on the mapping relationship information stored in the target information table. The mapping information is determined based on the storage status information corresponding to the mapping information table, and the mapping information is stored in the mapping information table. By storing the mapping information in a mapping information table that has a mapping relationship with the target information table, the method expands the target information table, avoids version compatibility issues, and avoids problems such as large scope of modification and high modification risk caused by modifying the existing judgment logic and processing logic. It also reduces the workload.
[0224] Corresponding to the above method embodiments, this application also provides information processing apparatus embodiments. Figure 6 A schematic diagram of the structure of an information processing apparatus according to an embodiment of this application is shown. Figure 6 As shown, the device includes:
[0225] The information determination module 602 is configured to receive an information acquisition request for a virtual service and determine a target information table in the business database associated with the virtual service based on the identification information carried in the information storage request.
[0226] The information table determination module 604 is configured to determine the mapping information table in memory based on the mapping relationship information stored in the target information table when the target information table does not meet the information storage conditions.
[0227] The information storage module 606 is configured to determine the mapping information based on the storage status information corresponding to the mapping information table, and store the mapping information in the mapping information table.
[0228] The information storage device provided in this application receives information retrieval requests for virtual services and determines a target information table in the business database associated with the virtual service based on the identification information carried in the information storage request. If the target information table does not meet the information storage conditions, a mapping information table is determined in memory according to the mapping relationship information stored in the target information table. The mapping information is determined according to the storage status information corresponding to the mapping information table, and the mapping information is stored in the mapping information table. By storing the mapping information in a mapping information table that has a mapping relationship with the target information table, the target information table is extended, avoiding version compatibility issues and problems such as large scope of modification and high modification risk caused by modifying the existing judgment logic and processing logic. At the same time, the workload is also reduced.
[0229] The above is an illustrative scheme of an information storage device according to this embodiment. It should be noted that the technical solution of this information storage device and the technical solution of the aforementioned information storage method belong to the same concept. Details not described in detail in the technical solution of the information storage device can be found in the description of the technical solution of the aforementioned information storage method. Furthermore, the components in the device embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.
[0230] Figure 7 A structural block diagram of a computing device 700 according to an embodiment of this application is shown. The components of the computing device 700 include, but are not limited to, a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and a database 750 is used to store data.
[0231] The computing device 700 also includes an access device 740, which enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0232] In one embodiment of this application, the aforementioned components of the computing device 700 and Figure 7 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 7 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0233] The computing device 700 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 700 can also be a mobile or stationary server.
[0234] The processor 720 is used to execute computer-executable instructions of the information processing method.
[0235] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the information processing method described above.
[0236] One embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used for an information processing method.
[0237] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the information processing method described above.
[0238] One embodiment of this application also provides a chip that stores a computer program, which, when executed by the chip, implements the steps of the information processing method.
[0239] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0240] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.
[0241] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0242] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0243] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.
Claims
1. An information processing method, characterized in that, include: Receive information retrieval requests for virtual services; Based on the identification information carried in the information acquisition request, a target information table is determined in the business database associated with the virtual service, and a mapping information table is determined in memory. The mapping information table refers to an information table that has a mapping relationship with the target information table and is used to store mapping information. Read the mapping information corresponding to the information acquisition request from the mapping information table. The mapping information refers to the information stored in the mapping information table when the information cannot be stored in the target information table and is therefore stored in the mapping information table. Target information is generated based on the storage information of the target information table and the mapping information, and the target information is used as a response to the information acquisition request; the step of generating target information based on the storage information of the target information table and the mapping information includes: determining the information storage threshold corresponding to the target information table, and calculating and determining the target information based on the information storage threshold and the mapping value corresponding to the mapping information.
2. The method according to claim 1, characterized in that, Before the step of receiving the information retrieval request for virtual services is executed, the method further includes: Receive information storage requests for the virtual service; Based on the identification information carried in the information storage request, the target information table is determined in the business database associated with the virtual service; If the target information table does not meet the information storage conditions, the mapping information is stored in the mapping information table associated with the target information table.
3. The method according to claim 2, characterized in that, When the target information table does not meet the information storage conditions, storing virtual business information in the memory-based mapping information table associated with the target information table includes: If the target information table does not meet the information storage conditions, read the mapping relationship information stored in the target information table, and determine the mapping information table based on the mapping relationship information; Read the storage status information corresponding to the mapping information table, and determine the mapping information based on the storage status information; The mapping information is stored in the mapping information table.
4. The method according to claim 2, characterized in that, Before the step of storing the mapping information in the mapping information table associated with the target information table is executed when the target information table does not meet the information storage conditions, the method further includes: Create a mapping information table in memory that is associated with the target information table; Establish the mapping relationship between the target information table and the mapping information table, and store it in the target information table.
5. The method according to claim 1, characterized in that, Before the step of receiving the information retrieval request for virtual services is executed, the method further includes: Receive operation requests submitted for virtual services; The operation request is parsed to obtain identification information; An information retrieval request is generated based on the identification information.
6. The method according to claim 5, characterized in that, After the step of generating target information based on the stored information of the target information table and the mapping information, and using the target information as a response to the information acquisition request, the method further includes: In the business database, determine the virtual object data table associated with the target information; or, in the target database storing the virtual object data corresponding to the virtual business, determine the virtual object data table associated with the target information. Read the target virtual object data corresponding to the target information from the virtual object data table, and use the target virtual object data as feedback for the operation request.
7. The method according to claim 1, characterized in that, The step of determining the target information table in the business database associated with the virtual service and determining the mapping information table in memory based on the identification information carried in the information acquisition request includes: The identification information is obtained by parsing the information retrieval request; Based on the identification information, a target information table is determined in the business database associated with the virtual business; Based on the mapping relationship information stored in the target information table, the mapping information table is determined in memory.
8. The method according to claim 7, characterized in that, After parsing the information acquisition request to obtain the identification information, the method further includes: Determine the identifier type corresponding to the identifier information; The target information table corresponding to the identifier type is determined from at least one information table contained in the business database.
9. The method according to any one of claims 1-8, characterized in that, Before the step of reading the mapping information corresponding to the information acquisition request from the mapping information table is executed, the method further includes: Determine whether there is any information to be read in the target information table that corresponds to the information acquisition request; If so, read the information to be read corresponding to the information acquisition request from the target information table, and use the information to be read as the response to the information acquisition request; If not, proceed with the step of reading the mapping information corresponding to the information retrieval request from the mapping information table.
10. The method according to claim 1, characterized in that, The step of reading the mapping information corresponding to the information acquisition request from the mapping information table includes: Identify the identifier record that matches the identifier information in the mapping information table; The mapping information corresponding to the information retrieval request is determined based on the identification record.
11. The method according to claim 1, characterized in that, The step of determining the information storage threshold corresponding to the target information table, and calculating and determining the target information based on the information storage threshold and the mapping value corresponding to the mapping information, includes: The information storage threshold corresponding to the target information table is determined based on the stored information in the target information table; The calculation result is obtained by calculating the storage threshold and the mapping value corresponding to the mapping information, and the calculation result is used as the target information.
12. An information storage method, characterized in that, include: Receive information storage requests for virtual services, and determine the target information table in the business database associated with the virtual service based on the identification information carried in the information storage request; If the target information table does not meet the information storage conditions, a mapping information table is determined in memory based on the mapping relationship information stored in the target information table. The mapping information table refers to an information table that has a mapping relationship with the target information table and is used to store mapping information. The mapping information is determined based on the storage status information corresponding to the mapping information table, and the mapping information is stored in the mapping information table. The mapping information refers to the information stored in the mapping information table when the information cannot be stored in the target information table and is therefore stored in the mapping information table. The target information table has an information storage threshold, and the mapping information has a mapping value. The information storage threshold and the mapping value are used to calculate the target information.
13. An information processing device, characterized in that, include: The receiving module is configured to receive information retrieval requests for virtual services. The determination module is configured to determine a target information table in the business database associated with the virtual service based on the identification information carried in the information acquisition request, and to determine a mapping information table in memory, wherein the mapping information table refers to an information table that has a mapping relationship with the target information table and is used to store mapping information; The reading module is configured to read the mapping information corresponding to the information acquisition request from the mapping information table, wherein the mapping information refers to the information stored in the mapping information table when the information cannot be stored in the target information table and is therefore stored in the mapping information table; The generation module is configured to generate target information based on the stored information of the target information table and the mapping information, and to use the target information as a response to the information acquisition request; The generation module is further configured to determine the information storage threshold corresponding to the target information table, and to calculate and determine the target information based on the information storage threshold and the mapping value corresponding to the mapping information.
14. A computing device, characterized in that, include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the method according to any one of claims 1 to 12.
15. A computer-readable storage medium storing computer instructions, characterized in that, When executed by a processor, this instruction implements the steps of the method according to any one of claims 1 to 12.
16. A computer program product, characterized in that, It includes computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-12.
Citation Information
Patent Citations
Request response method, apparatus and device, and readable storage medium
CN111680018A
Data acquisition and use method based on uncertain data source format
CN114490640A