CN115422270A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN115422270A
CN115422270A CN202211026441.XA CN202211026441A CN115422270A CN 115422270 A CN115422270 A CN 115422270A CN 202211026441 A CN202211026441 A CN 202211026441A CN 115422270 A CN115422270 A CN 115422270A
Authority
CN
China
Prior art keywords
information
mapping
target
information table
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211026441.XA
Other languages
Chinese (zh)
Inventor
陈天宇
梁晨
梁波
董敏怡
杨将鑫
陆易
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN202211026441.XA priority Critical patent/CN115422270A/en
Publication of CN115422270A publication Critical patent/CN115422270A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/256Integrating or interfacing systems involving database management systems in federated or virtual databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

Landscapes

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

Abstract

The application provides an information processing method and an information processing device, wherein the information processing method comprises the following steps: receiving an information acquisition request aiming at the virtual service; determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory; reading mapping information corresponding to the information acquisition request from the mapping information table; and generating target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request. When information is acquired, the target information table in the service database and the mapping information table in the memory can be determined according to the identification information, and then the target information is acquired according to the target information table and the mapping information table, so that the readability of the target information and the accuracy of acquiring the target information are improved.

Description

Information processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method. The application also relates to an information storage method, an information processing device, an information storage device, a computing device and a computer readable storage medium.
Background
With the development of internet technology and the arrival of the information era, the amount of information to be stored is increasing explosively, the storage pressure of a storage system is also increasing, for an information table used for storing information in a database, since the number of information to be stored is limited when the information table is created, when the amount of information to be stored exceeds the storage capacity of the information table, the storage of information cannot be realized, and then the existing judgment logic, processing logic and the like need to be considered when a new information table is created separately for storing information, which will greatly increase the workload of workers.
Disclosure of Invention
In view of this, embodiments of the present application provide an information processing method to solve technical defects in the prior art. The embodiment of the application also provides an information storage method, an information processing device, an information storage device, a computing device and a computer readable storage medium.
According to a first aspect of embodiments of the present application, there is provided an information processing method, including:
receiving an information acquisition request aiming at the virtual service;
determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory;
reading mapping information corresponding to the information acquisition request from the mapping information table;
and generating target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request.
Optionally, before the step of receiving an information acquisition request for a virtual service is executed, the method further includes:
receiving an information storage request for the virtual service;
determining a target information table in a service database associated with the virtual service according to the identification information carried in the information storage request;
and storing the mapping information in the mapping information table associated with the target information table when the target information table does not satisfy the information storage condition.
Optionally, the storing, in the mapping information table in the memory associated with the target information table, the virtual service information when the target information table does not satisfy the information storage condition includes:
under the condition that the target information table does not meet information storage conditions, reading mapping relation information stored in the target information table, and determining the mapping information table based on the mapping relation information;
reading storage state information corresponding to the mapping information table, and determining mapping information according to the storage state information;
and storing the mapping information to the mapping information table.
Optionally, in a case that the target information table does not satisfy an information storage condition, before the step of storing the mapping information in the mapping information table associated with the target information table is executed, the method further includes:
creating a mapping information table associated with the target information table in a memory;
and establishing mapping relation information between the target information table and the mapping information table, and storing the mapping relation information to the target information table.
Optionally, before the step of receiving an information acquisition request for a virtual service is executed, the method further includes:
receiving an operation request submitted by aiming at the virtual service;
analyzing the operation request to obtain identification information;
and generating an information acquisition request based on the identification information.
Optionally, after the step of generating the target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request is executed, the method further includes:
determining a virtual object data table associated with the target information in the service database, or determining a virtual object data table associated with the target information in a target database storing virtual object data corresponding to the virtual service;
and reading target virtual object data corresponding to the target information in the virtual object data table, and taking the target virtual object data as the feedback of the operation request.
Optionally, the determining, according to the identification information carried in the information acquisition request, a target information table in a service database associated with the virtual service and a mapping information table in a memory includes:
analyzing the information acquisition request to acquire the identification information;
determining a target information table in a service database associated with the virtual service based on the identification information;
and determining a mapping information table in a memory according to the mapping relation information stored in the target information table.
Optionally, after analyzing the information obtaining request to obtain the identification information, the method further includes:
determining an identification type corresponding to the identification information;
and determining a target information table corresponding to the identification type in at least one information table contained in the service database.
Optionally, before the step of reading the mapping information corresponding to the information obtaining request from the mapping information table is executed, the method further includes:
judging whether the target information table has information to be read corresponding to the information acquisition request;
if so, reading information to be read corresponding to the information acquisition request in the target information table, and taking the information to be read as a response of the information acquisition request;
if not, a step of reading the mapping information corresponding to the information acquisition request in the mapping information table is executed.
Optionally, the reading, in the mapping information table, mapping information corresponding to the information acquisition request includes:
determining an identification record matched with the identification information in the mapping information table;
and determining mapping information corresponding to the information acquisition request according to the identification record.
Optionally, the generating target information according to the storage information of the target information table and the mapping information includes:
determining an information storage threshold corresponding to the target information table according to the storage information of the target information table;
and calculating the storage threshold value and the mapping numerical value corresponding to the mapping information to obtain a calculation result, and taking the calculation result as the target information.
According to a second aspect of embodiments of the present application, there is provided an information processing apparatus including:
a receiving module configured to receive an information acquisition request for a virtual service;
a determining module configured to determine a target information table in the service database associated with the virtual service according to the identification information carried in the information acquisition request, and determine a mapping information table in a memory;
a reading module configured to read mapping information corresponding to the information acquisition request in the mapping information table;
a generating module configured to generate target information according to the storage information of the target information table and the mapping information, and to use the target information as a response to the information acquisition request.
According to a third aspect of embodiments of the present application, there is provided an information storage method, including:
receiving an information acquisition request aiming at a virtual service, and determining a target information table in a service database associated with the virtual service based on identification information carried in the information storage request;
determining a mapping information table in a memory according to the mapping relation information stored in the target information table under the condition that the target information table does not meet the information storage condition;
and determining mapping information according to the storage state information corresponding to the mapping information table, and storing the mapping information into the mapping information table.
According to a fourth aspect of embodiments of the present application, there is provided an information storage apparatus including:
the information determining module is configured to receive an information obtaining request aiming at the virtual service, and determine a target information table in a service database associated with the virtual service based on identification information carried in the information storage request;
the information table determining module is configured to determine a mapping information table in a memory according to the mapping relation information stored in the target information table under the condition that the target information table does not meet the information storage condition;
and the information storage module is configured to determine mapping information according to the storage state information corresponding to the mapping information table and store the mapping information into the mapping information table.
According to a fifth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is used for storing computer-executable instructions, and the steps of the information processing method are realized when the processor executes the computer-executable instructions.
According to a sixth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the information processing method.
According to a seventh aspect of embodiments of the present application, there is provided a chip storing a computer program which, when executed by the chip, implements the steps of the information processing method.
The information processing method provided by the application comprises the steps of receiving an information acquisition request aiming at a virtual service; determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory; reading mapping information corresponding to the information acquisition request from the mapping information table; and generating target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request. When information is acquired, the target information table in the service database and the mapping information table in the memory can be determined according to the identification information, and then the target information is acquired according to the target information table and the mapping information table, so that the readability of the target information and the accuracy of the acquisition of the target information are improved.
Drawings
Fig. 1 is a schematic structural diagram of an information processing method according to an embodiment of the present application;
fig. 2 is a flowchart of an information processing method according to an embodiment of the present application;
FIG. 3 is a process flow diagram of an information processing method applied to game item information processing according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
FIG. 5 is a flow chart of an information storage method according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an information storage device according to an embodiment of the present application;
fig. 7 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit and scope of this application, and thus this application is not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present application.
In the present application, an information processing method is provided. The present application relates to an information storage method, an information processing apparatus, an information storage apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
Referring to fig. 1, a schematic structural diagram of an information processing method is shown, where a client submits an information acquisition request to a server, the server receives the information acquisition request and then acquires information, determines a target information table in a database included in a storage system according to identification information carried in the information acquisition request, determines a mapping information table having a mapping relationship with the target information table in a memory according to mapping relationship information stored in the target information table, and then generates target information according to storage information corresponding to the target information table and mapping information acquired in the mapping information table, where the target information is a response of the information acquisition request, and the server feeds the target information back to the client, thereby completing information acquisition.
Fig. 2 is a flowchart illustrating an information processing method according to an embodiment of the present application, which specifically includes the following steps:
step S202: and receiving an information acquisition request aiming at the virtual service.
Specifically, the virtual service refers to an object to be processed, and for different service scenes, the objects corresponding to the virtual service are different; in a game scene, under the conditions of equipment and property replacement of game characters in a game, updating of a scene in the game and the like, selecting and using a certain new equipment and replacing a certain game scene, submitting an information acquisition request aiming at the new equipment and the new game scene, and further acquiring service information corresponding to the new equipment and the new game scene; in an information query scene, for example, books are searched in a book website, a book searching task can be a virtual service, retrieval is performed on the books needing to be searched, and then information related to the books is acquired; when the movie is searched in the movie website, the movie searching task can also be used as a virtual service; when a designated person is searched in the person management system, the person searching task is the virtual service, and the scene of the virtual service is not limited in this embodiment.
Based on this, in the information acquisition scene, for the virtual service which needs to perform information acquisition, the information to be acquired corresponding to the virtual service can be acquired by submitting an information acquisition request to the server. When the server receives the information acquisition request aiming at the virtual service, the information acquisition request can be analyzed subsequently, and then the feedback information corresponding to the information acquisition request is generated.
Further, at any time before the information acquisition request for the virtual service is received, information storage may be performed for the virtual service, which is specifically implemented as follows:
receiving an information storage request for the virtual service; determining a target information table in a service database associated with the virtual service according to the identification information carried in the information storage request; and storing the mapping information in the mapping information table associated with the target information table when the target information table does not meet the information storage condition.
Specifically, the information storage request refers to a computer instruction submitted to a server or a client when there is an information storage requirement for a virtual service, and is used for realizing information storage; the identification information is used for representing the information to be stored when an information storage request is submitted for the information to be stored, and can be information such as the name and the number of the game prop in a scene of storing the game prop; in the scene of storing books, the identification information can be the name, number and other information of the books; in the scenario of storing the person information, the identification information may be information such as name, number, code number, etc. of the person. The service database is used for storing information related to the virtual service; the target information table is stored in a database and used for storing information tables related to virtual services; the mapping information table is an information table which has a mapping relation with the target information table and is used for storing mapping information, wherein the mapping information table is stored in the memory. Correspondingly, the mapping information refers to information that cannot be stored in the target information table and is stored in the mapping information table when the information is stored in the mapping information table.
Based on the above, when an information storage requirement exists, submitting an information storage request to a server or a client, when receiving the information storage request for the virtual service, analyzing the information storage request to obtain identification information corresponding to information to be stored, determining a target information table in a service database associated with the virtual service according to the identification information obtained by analysis, judging whether the target information table can be used for information storage, and determining a mapping information table associated with the target information table in a memory and storing the mapping information into the mapping information table in the memory under the condition that the target information table does not meet the information storage condition.
For example, when a newly published book is entered in the book management system, for the book storage service, an information storage request is submitted according to information such as an entry number of the book in the book management system, a name of the book, an author, a publishing time, and the like, so as to store related information of the book in the book repository. And analyzing the information storage request to obtain a book 'encyclopedia of animals', wherein the name of the book is identification information. When information is stored, if the storage space of the book information table included in the book library reaches the upper limit and information storage cannot be performed, the book information is stored in a book information mapping table which has a mapping relation with the book information table and is stored in the memory.
In summary, when the target information table does not satisfy the information storage condition, the mapping information is stored in the mapping information table associated with the target information table, so that the information storage is completed, and meanwhile, the situation that the information storage fails due to the fact that the target information table cannot store information is avoided.
Further, when information storage is completed, since the target information table does not satisfy the information storage condition, information to be stored may be stored in a mapping information table having a mapping relationship with the target information table, which is specifically implemented as follows:
under the condition that the target information table does not meet information storage conditions, reading mapping relation information stored in the target information table, and determining the mapping information table based on the mapping relation information; reading storage state information corresponding to the mapping information table, and determining mapping information according to the storage state information; and storing the mapping information into the mapping information table.
Specifically, the mapping relationship information refers to information for representing an association relationship between the target information table and the mapping information table, and the mapping relationship information may be the association information between the target information table and the mapping information table, and the target information table and the mapping information table having an association relationship with the target information table can be determined according to the mapping relationship information, and the mapping relationship between the target information table and the mapping information table is established, so as to generate mapping relationship information, and store the mapping relationship information in the target information table; the storage state information refers to the current information storage condition in the mapping information table, and under the condition that each row of records stored in the mapping information table corresponds to one sequence number, the sequence number is increased in a self-increment mode, so that the storage state information is the quantity information of the table records which are currently stored in the mapping information table.
Based on this, when information is stored, it is necessary to determine whether information can be stored in the target information table, and when the target information table does not satisfy the information storage condition, that is, the target information table cannot realize information storage, the stored mapping relationship information is read from the target information table, and the mapping information table having a mapping relationship with the target information table can be determined in the memory according to the mapping relationship information. And reading the storage state information corresponding to the mapping information table, determining the mapping information according to the storage state information, and storing the mapping information into the mapping information table.
As described above, when storing information on books "encyclopedia of animals", since the upper limit of the number of information in the book information table included in the book library is 256, when storing information on the 356 th book, the information cannot be stored in the book information table, and according to the mapping relationship stored in the book information table: book information table 1-mapping information table 1, determining mapping information table 1 having mapping relation with the book information table, and determining ID100 corresponding to the next information to be stored according to current storage ID99 of mapping information table 1, so that ID100 is mapping information, and storing ID100 and book "animal encyclopedia" into the mapping information table.
In summary, when the target information table does not satisfy the information storage condition, the mapping information table is determined according to the mapping relationship stored in the target information table, and then the mapping information is determined according to the storage state information of the mapping information table, and the mapping information is stored in the mapping information table, so that information storage corresponding to the information storage request is realized, and information storage can be completed without expanding the target information table.
Further, before storing information in the target information table, in order to avoid the problem that information cannot be stored in the target information table due to the target information table not meeting the information storage condition when storing information in the target information table, a mapping information table may be created in the memory in advance, which is specifically implemented as follows:
creating a mapping information table associated with the target information table in a memory; and establishing mapping relation information between the target information table and the mapping information table, and storing the mapping relation information to the target information table.
Based on this, the mapping information table corresponding to the target information table can be created at any time before the information is stored in the target information table. Thus, when information is stored in the target information table, the information is stored in the mapping information table when the target information table does not satisfy the information storage condition. The method comprises the steps of establishing a mapping information table associated with a target information table in a memory, establishing an association relationship between the mapping information table and the target information table, namely establishing mapping relationship information corresponding to the target information table and the mapping information table, and storing the mapping relationship information in the target information table, so that when information is stored in the target information table in the following process, the mapping information table can be found through the mapping relationship information stored in the target information table, and the information is stored in the mapping information table.
Along the above example, the mapping information table 1 is created in the memory, the mapping relationship between the mapping information table 1 and the book information table 1 is established, and the mapping relationship information: book information table 1-mapping information table 1, store to book information table 1. Therefore, when storing the book information in the book information table 1, the book information can be stored in the mapping information table 1 having a mapping relationship with the book information table 1.
In summary, by creating the mapping information table having a mapping relationship with the target information table, when there is a subsequent information storage requirement, the information to be stored can be stored in the mapping information table, and even if the target information table satisfies the information storage condition, the information to be stored can be stored in the mapping information table, so that the flexibility of information storage is improved.
Further, the information obtaining request is used to obtain information corresponding to the identification information, and in a book information obtaining scene, besides reading a name of a book, information such as an author, a category, and a publication date of the book needs to be obtained, so that the information obtaining method can be implemented by submitting an operation request for a book information obtaining task, and is specifically implemented as follows:
receiving an operation request submitted by aiming at the virtual service; analyzing the operation request to obtain identification information; and generating an information acquisition request based on the identification information.
Specifically, the operation request refers to a computer instruction submitted for the virtual service, including but not limited to operations such as querying, writing, deleting, modifying, and the like, the operation request carries operation information, the operation request is analyzed to obtain the operation information, and correspondingly, the identification information is information obtained by analyzing the operation request; the identification information corresponds to the virtual service, and in a game scene, under the condition that the virtual service reads the appointed prop information in the prop table, the identification information can be the name of the prop; in a book query scene, the identification information can be a name of a book to be queried; in the scene of searching for people, the identification information may be the name or code of the people to be searched.
Based on this, when there is a processing requirement for the virtual service, an operation request is submitted to the server or the client for the virtual service, and after the server or the client receives the operation request submitted for the virtual service, the operation request is analyzed to obtain the identification information carried by the operation request. And generating an information acquisition request according to the identification information, thereby realizing information acquisition.
According to the above example, when books are inquired in the book management system, book inquiry can be performed in a mode of inputting relevant information of the books, namely, inputting book names or keywords of the book names are frequently used for inquiring, when books are inquired, inquiry requests are submitted based on the book names, after the inquiry requests are received by a server or a client, the inquiry requests are analyzed to obtain animal encyclopedias, information acquisition requests are generated according to the animal encyclopedias, and then information relevant to the books is read in a book information table.
In summary, for the virtual service submitting operation request, the information obtaining request is generated based on the identification information obtained by analyzing the operation request, so that the obtaining of the relevant information of the virtual service is realized, and the accuracy of information obtaining is improved.
Step S204: and determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory.
Specifically, when the information acquisition request for the virtual service is received, the information acquisition request is analyzed to obtain the identification information carried by the information acquisition request, and then a target information table and a mapping information table are determined according to the identification information, wherein the target information table is stored in the service database, and the mapping information table is stored in the memory.
Based on this, when an information acquisition request for the virtual service is received, the information acquisition request is analyzed to obtain the identification information carried by the information acquisition request, and then a target information table matched with the identification information is determined in the service database according to the identification information, and a mapping information table matched with the target information table is determined in the memory according to the mapping relation information stored in the target information table.
Further, when the target information table and the mapping information table are determined according to the identification information, the mapping information table may be determined in the memory according to the mapping relationship information stored in the target information table, which is specifically implemented as follows:
analyzing the information acquisition request to acquire the identification information; determining a target information table in a service database associated with the virtual service based on the identification information; and determining a mapping information table in the memory according to the mapping relation information stored in the target information table.
Based on this, after receiving the information acquisition request, the information acquisition request is analyzed to obtain the identification information, matching is performed in a plurality of information tables included in a service database associated with the virtual service according to the identification information, a target information table is determined, mapping relation information stored in the target information table is read, and the mapping information table is determined in the memory according to the mapping relation information stored in the target information table.
Following the above example, after receiving an information acquisition request submitted for book "animal encyclopedia", the information acquisition request is parsed to obtain identification information "animal encyclopedia", book information table 1 is determined in the book library according to "animal encyclopedia", and mapping relationship information stored in book information table 1 is read: book information table 1-mapping information table 1, and determining mapping information table 1 in the memory according to the mapping relationship information.
In summary, the identification information is obtained by analyzing the information obtaining request, the target information table is determined in the service database according to the identification information, the mapping information table is determined in the memory according to the mapping relationship information stored in the target information table, and the information is read in the mapping information table, so that the accuracy of information reading is improved.
Further, after the information obtaining request is analyzed to obtain the identification information, the target information table corresponding to the identification information may be determined in the service database according to the identification type corresponding to the identification information, which is specifically implemented as follows:
determining an identification type corresponding to the identification information; and determining a target information table corresponding to the identification type in at least one information table contained in the service database.
Specifically, the identification type refers to type information corresponding to the identification information, and in the case that the identification information is a game prop name, the identification type is classification information corresponding to the game prop, for example, if knives, swords, arches, hammers, spears and the like are weapons, the identification type may be "weapons"; the backpack, the necklace, the jade pendant, the belt and the like are accessories, and the identification information can be an ornament. In the case that the identification information is a name of a book, the identification type may be a category of the book, including but not limited to a human, social, scientific, and the like type.
Based on the above, after the identification information carried by the information acquisition request is acquired, the matching information table is included in the service database according to the identification type corresponding to the identification information, and the information table matched with the identification type in the service database is used as the target information table corresponding to the identification information.
Following the above example, after receiving an information acquisition request submitted for a book "animal encyclopedia", the information acquisition request is analyzed to obtain identification information "animal encyclopedia", and a book information table 1 corresponding to the identification type "science" is determined in a book library.
In summary, the target information table is determined in the service database according to the identifier type corresponding to the identifier information, so that the accuracy of determining the target information table is improved.
Step S206: and reading the mapping information corresponding to the information acquisition request in the mapping information table.
Specifically, after determining the target information table in the service database associated with the virtual service according to the identification information carried in the information acquisition request and determining the mapping information table in the memory, the mapping information corresponding to the information acquisition request may be read from the mapping information table, where the mapping information table is an information table having a mapping relationship with the target information table and used for storing mapping information, and correspondingly, the mapping information is information that cannot be stored in the target information table, and is stored in the mapping information table when the information is stored in the mapping information table, and the mapping information includes, but is not limited to, ID information stored in the mapping information table.
Based on this, after the target information table is determined in the service database associated with the virtual service according to the identification information carried in the information acquisition request, and the mapping information table is determined in the memory, the mapping information corresponding to the identification information is read in the mapping information table according to the identification information, so that the target information corresponding to the information acquisition request is determined based on the mapping information in the following process. In practical application, the mapping information may be read from the mapping information table according to the mapping relationship information stored in the target information table.
Further, when reading information based on the information acquisition request, since the information to be read may be stored in the target information table or the mapping information table, when reading information, it is necessary to determine whether the target information table has the information to be acquired corresponding to the information acquisition request, which is specifically implemented as follows:
judging whether the target information table has information to be read corresponding to the information acquisition request; if so, reading information to be read corresponding to the information acquisition request in the target information table, and taking the information to be read as a response of the information acquisition request; and if not, executing the step of reading the mapping information corresponding to the information acquisition request in the mapping information table.
Specifically, the information to be read refers to information corresponding to the information acquisition request, the information to be read is feedback of the information acquisition request, and when the information to be read is read from the target information table, the information to be read corresponding to the information acquisition request is stored in the target information table and can be determined by reading the target information table.
Based on this, when information reading is performed based on the information acquisition request, it is determined whether or not there is information to be read corresponding to the information acquisition request in the target information table. If the information exists, the information is directly stored in the target information table when the information is stored, at this time, the information to be read corresponding to the information acquisition request can be directly read in the target information table, and the information to be read is used as the response of the information acquisition request; if the mapping information does not exist, the mapping information corresponding to the information acquisition request can be read from the mapping information table having a mapping relation with the target information table.
According to the above example, when reading the relevant book information of the book "animal encyclopedia", judging whether the relevant book information of the book "animal encyclopedia" is stored in the book information table, if so, reading the relevant book information of the book "animal encyclopedia" in the book information table; if not, reading related book information of the book 'animal encyclopedia' in a mapping information table having a mapping relation with the book information table.
In summary, before the mapping information is read, whether the information to be read is stored in the target information table is determined, and if yes, the information is directly read in the target information table, so that the information reading speed is increased.
Further, when the mapping information is read from the mapping information table, the tag record matched with the identification information may be determined in the mapping information table, and the mapping information is further read, which is specifically implemented as follows:
determining an identification record matched with the identification information in the mapping information table; and determining mapping information corresponding to the information acquisition request according to the identification record.
Specifically, the identification record refers to a table record stored in the mapping information table, that is, a piece of information stored in the mapping information table.
Based on this, after the identification information is determined, the mapping information table stored in the memory is queried based on the identification information, the identification record matched with the identification information is determined in the mapping information table, the information corresponding to the identification record is read, and the read information is used as the mapping information corresponding to the information acquisition request.
In the above example, the query request is analyzed to obtain the identification information "animal encyclopedia", and the mapping information table is queried according to the identification information "animal encyclopedia", so as to determine the table record corresponding to the identification information "animal encyclopedia": 100-animal encyclopedia. The table record "100" in "100-animal encyclopedia" is the mapping information corresponding to the information acquisition request.
In summary, the identification record matched with the identification information is determined in the mapping information table, and then the mapping information corresponding to the information acquisition request in the mapping information table is read, so that the accuracy of information reading is improved. Step S208: and generating target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request.
Specifically, after the mapping information corresponding to the information acquisition request is read in the mapping information table, the target information may be generated from the mapping information and the storage information of the target information table, and the target information may serve as a response to the information acquisition request, where the storage information refers to the storage space information of the target information table, that is, the number of pieces of information that can be stored in the target information table, and when only 2 bytes of data can be stored in the target information table, the upper limit of the number of pieces of information in the target information table is 65535 pieces.
Based on the information acquisition request, after the mapping information is read from the mapping information table, the storage information corresponding to the target information table is determined, the target information is further generated according to the storage information and the mapping information of the target information table, and the target information is used as the response of the information acquisition request.
Further, when generating the target information according to the storage information and the mapping information of the target information table, the target information may be obtained by calculating the storage information and the mapping information of the target information table in a calculation form, which is specifically implemented as follows:
determining an information storage threshold corresponding to the target information table according to the storage information of the target information table;
and calculating the storage threshold value and the mapping numerical value corresponding to the mapping information to obtain a calculation result, and taking the calculation result as the target information.
Specifically, the storage information refers to attribute information corresponding to the target information table, and includes a storage quantity of the information that can be stored in the target information table, where the storage quantity is an information storage threshold corresponding to the target information table and represents a storage capability of the target information table.
Based on the information, the storage information of the target information table is determined, and the information storage threshold corresponding to the target information table is determined according to the storage information of the target information table. And determining a mapping numerical value according to the mapping information, calculating the storage threshold value and the mapping numerical value corresponding to the mapping information to obtain a calculation result, wherein the obtained calculation result is target information, and the target information can be used as a response of the information acquisition request.
Along the above example, the storage information 256 of the book information table is determined, that is, 256 is an information storage threshold of the book information table, the mapping numerical value 100 corresponding to the mapping information ID100 is determined, and the storage information 256 and the mapping numerical value 100 are summed to obtain the target information 356.
In summary, the target information is determined by determining the information storage threshold corresponding to the target information table and then by a method of calculating according to the information storage threshold and the mapping numerical value, so that the accuracy of determining the target information is improved.
Further, after the target information is determined, the data corresponding to the operation request may be read according to the target information, which is specifically implemented as follows:
determining a virtual object data table associated with the target information in the service database, or determining a virtual object data table associated with the target information in a target database storing virtual object data corresponding to the virtual service; and reading target virtual object data corresponding to the target information in the virtual object data table, and taking the target virtual object data as the feedback of the operation request.
Specifically, the service data table is a data table for storing service data related to the virtual service, and the data stored in the service data table is associated with the target information table; the target database is a database for storing a data table of service data related to the virtual service; accordingly, the virtual object data refers to service data related to the virtual service, the virtual object data table refers to a data table for storing the virtual object data, and the target virtual object data refers to data corresponding to the operation request in the virtual object data table.
Based on this, when the virtual object data table is stored in the service database, the virtual object data table associated with the target information is specified in the service database, or when the virtual object data table is not stored in the service database but is stored in the target database storing the virtual object data corresponding to the virtual service, the virtual object data table associated with the target information is specified in the target database storing the virtual object data corresponding to the virtual service. And reading target virtual object data corresponding to the target information in the virtual object data table, and taking the target virtual object data as feedback of the operation request.
As described above, when it is determined that the target information 356 is present in the virtual object data table for storing the virtual object data corresponding to the target information in the business database after the target information 356 is determined, the data such as the author and the publishing time of the book "animal encyclopedia" corresponding to the target information 356 is read from the virtual object data table, and the data such as the author and the publishing time of the book "animal encyclopedia" are the responses to the book reading requests. Or when the virtual object data table stored in the virtual object data is stored in the target database, reading data such as an author and publication time related to the book "animal encyclopedia" corresponding to the target information 356 from the virtual object data table in the target database, wherein the data such as the author and publication time related to the book "animal encyclopedia" is a response to the book reading request. The information processing method provided by the application comprises the steps of receiving an information acquisition request aiming at a virtual service; determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory; reading mapping information corresponding to the information acquisition request from the mapping information table; and generating target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request. When information is acquired, the target information table in the service database and the mapping information table in the memory can be determined according to the identification information, and then the target information is acquired according to the target information table and the mapping information table, so that the readability of the target information and the accuracy of acquiring the target information are improved.
The information processing method is further described below with reference to fig. 3 by taking the application of the information processing method provided by the present application to the information processing of game props as an example. Fig. 3 shows a processing flow chart of an information processing method applied to game item information processing provided in an embodiment of the present application, and specifically includes the following steps:
step S302: an information storage request for a virtual service is received.
In the virtual service in which the game item is stored, an information storage request for game item "knife" is received, with game item "knife" numbered 75535.
Step S304: and determining a target information table in a service database associated with the virtual service according to the identification information carried in the information storage request.
And searching a weapon table corresponding to the game prop knife in a game prop database corresponding to the virtual service of storing the game prop according to the identification information knife carried in the information storage request.
Step S306: and under the condition that the target information table does not meet the information storage condition, reading the mapping relation information stored in the target information table, and determining the mapping information table in the memory based on the mapping relation information.
If the upper limit of the 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 contained in the game item database, and the mapping relationship information stored in the weapon table is read: and determining a mapping table 1 for storing the relevant information of the game prop knife in the memory according to the mapping relation information, namely the weapon table-mapping table 1.
Step S308: and reading the storage state information corresponding to the mapping information table, and determining the mapping information according to the storage state information.
The current information storage condition of a mapping table 1 in the memory is determined, 9999 pieces of information are stored in the current mapping table 1, and then the serial number of the game prop knife is stored as 10000, wherein 10000 is mapping information.
Step S310: and storing the mapping information into a mapping information table.
Mapping information 10000 is stored in mapping table 1, and identification information of game item "knife" is also stored in mapping table 1. And further storing attribute information such as the color, attacking power, holder and the like of the game item knife corresponding to the game item knife into a mapping table 1 in the memory. Because the mapping relationship between the mapping table 1 and the weapon table exists, the mapping table 1 can be regarded as a part of the weapon table, that is, the mapping table 1 is an extended table corresponding to the weapon table and stored in the memory. The relevant attribute information of "knife" is stored in mapping table 1, so that the relevant attribute information of "knife" formed at the business level is also stored in the weapons table.
Step S312: receiving an operation request submitted aiming at the virtual service, analyzing the operation request to obtain identification information, and generating an information acquisition request based on the identification information.
When data related to the game item "knife" is read, a request for use is submitted for the game item "knife" by clicking a control or any other means.
Step S314: and analyzing the information acquisition request to acquire the identification information.
The usage request is parsed to obtain identification information "knife".
Step S316: and determining a target information table in a service database associated with the virtual service based on the identification information.
And searching a weapon table corresponding to the game prop knife in the game prop database according to the identification information of the knife.
Step S318: and determining a mapping information table in the memory according to the mapping relation information stored in the target information table.
According to the mapping relation information stored in the weapon table: weapon table-mapping table 1, mapping table 1 is determined in memory.
Step S320: judging whether the target information table has information to be read corresponding to the information acquisition request, if so, executing step S322; if not, go to step S324.
Judging whether the information corresponding to the knife to be read is stored in the weapon table, if so, indicating that the information corresponding to the game prop knife is directly stored in the weapon table when the information corresponding to the game prop knife is stored; if not, the information corresponding to the game item knife is stored in a mapping table in the memory, which has a mapping relation with the weapon table, because the weapon table reaches the storage upper limit when the information corresponding to the game item knife is stored.
Step S322: and reading target information corresponding to the information acquisition request in a target information table, and using the target information as a response of the information acquisition request.
Information 75535 corresponding to the game item "knife" is read in a weapon table contained in the game item database.
Step S324: and reading the mapping information corresponding to the information acquisition request in the mapping information table.
And reading information 10000 corresponding to the game item knife in a weapon list.
Step S326: and determining an information storage threshold corresponding to the target information table according to the storage information of the target information table.
The stored upper bound value 65535 for the weapons list is determined.
Step S328: and calculating the storage threshold value and the mapping numerical value corresponding to the mapping information to obtain a calculation result, and taking the calculation result as target information.
And calculating according to the storage upper limit value 65535 of the weapon table and the information 10000 corresponding to the game item knife read in the weapon table to obtain target information 75535 corresponding to the game item knife.
Step S330: and reading target virtual object data corresponding to the target information in the mapping information table, and taking the target virtual object data as feedback of the operation request.
According to the target information 75535, reading attribute information such as color, attack power, holder and the like of a knife corresponding to the game item knife in the mapping table 1, wherein the attribute information is feedback of a use request submitted by the game item knife.
To sum up, according to the information processing method provided by the application, when information is acquired, the target information table in the service database and the mapping information table in the memory can be determined according to the identification information, and then the target information is acquired according to the target information table and the mapping information table, so that the readability of the target information and the accuracy of acquiring the target information are improved. By storing the mapping information into the mapping information table having the mapping relation with the target information table, the method realizes the expansion of the target information table, avoids the version compatibility, avoids the problems of large change range, high change risk and the like caused by changing the existing judgment logic and processing logic, and simultaneously reduces the workload.
Corresponding to the above method embodiment, the present application further provides an information processing apparatus embodiment, and fig. 4 shows a schematic structural diagram of an information processing apparatus provided in an embodiment of the present application. As shown in fig. 4, the apparatus includes:
a receiving module 402 configured to receive an information acquisition request for a virtual service;
a determining module 404, configured to determine, according to the identification information carried in the information obtaining request, a target information table in a service database associated with the virtual service, and a mapping information table in a memory;
a reading module 406 configured to read mapping information corresponding to the information acquisition request in the mapping information table;
a generating module 408 configured to generate target information according to the storage information of the target information table and the mapping information, and use the target information as a response of the information obtaining request.
In an optional embodiment, the receiving module 402 is further configured to:
receiving an information storage request aiming at the virtual service;
determining a target information table in a service database associated with the virtual service according to the identification information carried in the information storage request;
and storing the mapping information in the mapping information table associated with the target information table when the target information table does not meet the information storage condition.
In an optional embodiment, the receiving module 402 is further configured to:
under the condition that the target information table does not meet information storage conditions, reading mapping relation information stored in the target information table, and determining the mapping information table based on the mapping relation information;
reading storage state information corresponding to the mapping information table, and determining mapping information according to the storage state information;
and storing the mapping information into the mapping information table.
In an optional embodiment, the receiving module 402 is further configured to:
creating a mapping information table associated with the target information table in a memory;
and establishing mapping relation information between the target information table and the mapping information table, and storing the mapping relation information to the target information table.
In an optional embodiment, the receiving module 402 is further configured to:
receiving an operation request submitted by aiming at the virtual service;
analyzing the operation request to obtain identification information;
and generating an information acquisition request based on the identification information.
In an optional embodiment, the generating module 408 is further configured to:
determining a virtual object data table associated with the target information in the service database, or determining a virtual object data table associated with the target information in a target database storing virtual object data corresponding to the virtual service;
and reading target virtual object data corresponding to the target information in the virtual object data table, and taking the target virtual object data as the feedback of the operation request.
In an optional embodiment, the determining module 404 is further configured to:
analyzing the information acquisition request to acquire the identification information;
determining a target information table in a service database associated with the virtual service based on the identification information;
and determining a mapping information table in the memory according to the mapping relation information stored in the target information table.
In an optional embodiment, the determining module 404 is further configured to:
determining an identification type corresponding to the identification information;
and determining a target information table corresponding to the identification type in at least one information table contained in the service database.
In an optional embodiment, the reading module 406 is further configured to:
judging whether the target information table has information to be read corresponding to the information acquisition request;
if so, reading information to be read corresponding to the information acquisition request in the target information table, and taking the information to be read as a response of the information acquisition request;
and if not, executing the step of reading the mapping information corresponding to the information acquisition request in the mapping information table.
In an optional embodiment, the reading module 406 is further configured to:
determining an identification record matched with the identification information in the mapping information table;
and determining mapping information corresponding to the information acquisition request according to the identification record.
In an optional embodiment, the generating module 408 is further configured to:
determining an information storage threshold corresponding to the target information table according to the storage information of the target information table;
and calculating the storage threshold value and the mapping numerical value corresponding to the mapping information to obtain a calculation result, and taking the calculation result as the target information.
The application provides an information processing apparatus, by receiving an information acquisition request for a virtual service; determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory; reading mapping information corresponding to the information acquisition request from a mapping information table; and generating target information according to the storage information and the mapping information of the target information table, and using the target information as a response of the information acquisition request. When information is acquired, the target information table in the service database and the mapping information table in the memory can be determined according to the identification information, and then the target information is acquired according to the target information table and the mapping information table, so that the readability of the target information and the accuracy of the acquisition of the target information are improved.
The above is a schematic configuration of an information processing apparatus of the present embodiment. It should be noted that the technical solution of the information processing apparatus belongs to the same concept as the technical solution of the information processing method described above, and for details that are not described in detail in the technical solution of the information processing apparatus, reference may be made to the description of the technical solution of the information processing method described above. Further, the components in the device embodiment should be understood as functional blocks that must be created to implement the steps of the program flow or the steps of the method, and each functional block is not actually divided or separately defined. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
Fig. 5 is a flowchart illustrating an information storage method according to an embodiment of the present application, which specifically includes the following steps:
step S502: receiving an information acquisition request aiming at the virtual service, and determining a target information table in a service database associated with the virtual service based on identification information carried in the information storage request.
Step S504: and under the condition that the target information table does not meet the information storage condition, determining a mapping information table in a memory according to the mapping relation information stored in the target information table.
Step S506: and determining mapping information according to the storage state information corresponding to the mapping information table, and storing the mapping information into the mapping information table.
The information storage method provided by the application comprises the steps of receiving an information acquisition request aiming at a virtual service, and determining a target information table in a service database associated with the virtual service based on identification information carried in the information storage request; determining a mapping information table in a memory according to the mapping relation information stored in the target information table under the condition that the target information table does not meet the information storage condition; the method comprises the steps of determining mapping information according to storage state information corresponding to a mapping information table, storing the mapping information into the mapping information table, and storing the mapping information into the mapping information table having a mapping relation with a target information table, so that the target information table is expanded, version compatibility is avoided, the problems of large change range, high change risk and the like caused by changing the existing judgment logic and processing logic are solved, and meanwhile, the workload is reduced.
Corresponding to the above method embodiment, the present application further provides an information processing apparatus embodiment, and fig. 6 shows a schematic structural diagram of an information processing apparatus provided in an embodiment of the present application. As shown in fig. 6, the apparatus includes:
an information determining module 602, configured to receive an information obtaining request for a virtual service, and determine a target information table in a service database associated with the virtual service based on identification information carried in the information storage request;
an information table determining module 604, configured to determine a mapping information table in a memory according to mapping relationship information stored in the target information table when the target information table does not satisfy an information storage condition;
an information storage module 606 configured to determine mapping information according to storage status information corresponding to the mapping information table, and store the mapping information in the mapping information table.
The information storage device provided by the application determines a target information table in a service database associated with the virtual service by receiving an information acquisition request aiming at the virtual service and based on identification information carried in the information storage request; determining a mapping information table in a memory according to the mapping relation information stored in the target information table under the condition that the target information table does not meet the information storage condition; the method comprises the steps of determining mapping information according to storage state information corresponding to a mapping information table, storing the mapping information into the mapping information table, and storing the mapping information into the mapping information table having a mapping relation with a target information table, so that the target information table is expanded, version compatibility is avoided, the problems of large change range, high change risk and the like caused by changing the existing judgment logic and processing logic are solved, and meanwhile, the workload is reduced.
The above is a schematic arrangement of an information storage apparatus of the present embodiment. It should be noted that the technical solution of the information storage device and the technical solution of the information storage method belong to the same concept, and details that are not described in detail in the technical solution of the information storage device can be referred to the description of the technical solution of the information storage method. Further, the components in the device embodiment should be understood as functional blocks that must be created to implement the steps of the program flow or the steps of the method, and each functional block is not actually divided or separately defined. The device claims defined by such a set of functional modules should be understood as a functional module framework that mainly implements the solution by means of a computer program described in the specification, and should not be understood as a physical device that mainly implements the solution by means of hardware.
Fig. 7 illustrates a block diagram of a computing device 700 provided according to an embodiment of the present application. The components of the computing device 700 include, but are not limited to, memory 710 and a processor 720. Processor 720 is coupled to memory 710 via bus 730, and database 750 is used to store data.
Computing device 700 also includes access device 740, access device 740 enabling computing device 700 to communicate via one or more networks 760. Examples of such networks include the 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. Access device 740 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (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 forth.
In one embodiment of the application, the above-described components of the computing device 700 and other components not shown in fig. 7 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 7 is for purposes of example only and is not limiting as to the scope of the present application. Other components may be added or replaced as desired by those skilled in the art.
Computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet computer, personal digital assistant, laptop computer, notebook computer, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smart glasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 700 may also be a mobile or stationary server.
Wherein, the processor 720 is used for executing the computer-executable instructions of the information processing method.
The foregoing is a schematic diagram of a computing device of the present embodiment. It should be noted that the technical solution of the computing device belongs to the same concept as the technical solution of the information processing method, and for details that are not described in detail in the technical solution of the computing device, reference may be made to the description of the technical solution of the information processing method.
An embodiment of the present application also provides a computer-readable storage medium storing computer instructions, which when executed by a processor, are used for an information processing method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the information processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the information processing method.
An embodiment of the present application further provides a chip, in which a computer program is stored, and the steps of the information processing method are implemented when the computer program is executed by the chip.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently considered to be preferred embodiments and that acts and modules are not required in the present application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical application, to thereby enable others skilled in the art to best understand the application and its practical application. The application is limited only by the claims and their full scope and equivalents.

Claims (15)

1. An information processing method, characterized by comprising:
receiving an information acquisition request aiming at the virtual service;
determining a target information table in a service database associated with the virtual service according to the identification information carried in the information acquisition request, and determining a mapping information table in a memory;
reading mapping information corresponding to the information acquisition request from the mapping information table;
and generating target information according to the storage information of the target information table and the mapping information, and using the target information as a response of the information acquisition request.
2. The method of claim 1, wherein before the step of receiving the information acquisition request for the virtual service is performed, the method further comprises:
receiving an information storage request for the virtual service;
determining a target information table in a service database associated with the virtual service according to the identification information carried in the information storage request;
and storing the mapping information in the mapping information table associated with the target information table when the target information table does not satisfy the information storage condition.
3. The method according to claim 2, wherein, in the case that the target information table does not satisfy the information storage condition, storing the virtual service information in a mapping information table in a memory associated with the target information table, includes:
under the condition that the target information table does not meet information storage conditions, reading mapping relation information stored in the target information table, and determining the mapping information table based on the mapping relation information;
reading storage state information corresponding to the mapping information table, and determining mapping information according to the storage state information;
and storing the mapping information into the mapping information table.
4. The method according to claim 2, wherein, before the step of storing the mapping information in the mapping information table associated with the target information table is executed, if the target information table does not satisfy the information storage condition, further comprising:
creating a mapping information table associated with the target information table in a memory;
and establishing mapping relation information between the target information table and the mapping information table, and storing the mapping relation information to the target information table.
5. The method of claim 1, wherein before the step of receiving the information acquisition request for the virtual service, the method further comprises:
receiving an operation request submitted by aiming at the virtual service;
analyzing the operation request to obtain identification information;
and generating an information acquisition request based on the identification information.
6. The method according to claim 5, wherein after the step of generating the target information from the storage information of the target information table and the mapping information and responding the target information to the information acquisition request is executed, the method further comprises:
determining a virtual object data table associated with the target information in the service database, or determining a virtual object data table associated with the target information in a target database storing virtual object data corresponding to the virtual service;
and reading target virtual object data corresponding to the target information in the virtual object data table, and taking the target virtual object data as the feedback of the operation request.
7. The method according to claim 1, wherein the determining a target information table in a service database associated with the virtual service and a mapping information table in a memory according to the identification information carried in the information acquisition request includes:
analyzing the information acquisition request to acquire the identification information;
determining a target information table in a service database associated with the virtual service based on the identification information;
and determining a mapping information table in a memory according to the mapping relation information stored in the target information table.
8. The method of claim 7, wherein after parsing the information obtaining request to obtain the identification information, the method further comprises:
determining an identification type corresponding to the identification information;
and determining a target information table corresponding to the identification type in at least one information table contained in the service database.
9. The method according to any one of claims 1 to 8, wherein before the step of reading the mapping information corresponding to the information obtaining request from the mapping information table is performed, the method further comprises:
judging whether the target information table has information to be read corresponding to the information acquisition request;
if so, reading information to be read corresponding to the information acquisition request in the target information table, and taking the information to be read as a response of the information acquisition request;
if not, a step of reading the mapping information corresponding to the information acquisition request in the mapping information table is executed.
10. The method according to claim 1, wherein the reading the mapping information corresponding to the information obtaining request in the mapping information table comprises:
determining an identification record matched with the identification information in the mapping information table;
and determining mapping information corresponding to the information acquisition request according to the identification record.
11. The method according to claim 1, wherein the generating target information from the storage information of the target information table and the mapping information comprises:
determining an information storage threshold corresponding to the target information table according to the storage information of the target information table;
and calculating the storage threshold value and the mapping numerical value corresponding to the mapping information to obtain a calculation result, and taking the calculation result as the target information.
12. An information storage method, comprising:
receiving an information acquisition request aiming at a virtual service, and determining a target information table in a service database associated with the virtual service based on identification information carried in the information storage request;
determining a mapping information table in a memory according to the mapping relation information stored in the target information table under the condition that the target information table does not meet the information storage condition;
and determining mapping information according to the storage state information corresponding to the mapping information table, and storing the mapping information into the mapping information table.
13. An information processing apparatus characterized by comprising:
a receiving module configured to receive an information acquisition request for a virtual service;
a determining module configured to determine a target information table in the service database associated with the virtual service according to the identification information carried in the information acquisition request, and determine a mapping information table in a memory;
a reading module configured to read mapping information corresponding to the information acquisition request in the mapping information table;
a generating module configured to generate target information from the storage information of the target information table and the mapping information, and to use the target information as a response to the information acquisition request.
14. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the steps of the method of any one of claims 1 to 12.
15. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 12.
CN202211026441.XA 2022-08-25 2022-08-25 Information processing method and device Pending CN115422270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211026441.XA CN115422270A (en) 2022-08-25 2022-08-25 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211026441.XA CN115422270A (en) 2022-08-25 2022-08-25 Information processing method and device

Publications (1)

Publication Number Publication Date
CN115422270A true CN115422270A (en) 2022-12-02

Family

ID=84197501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211026441.XA Pending CN115422270A (en) 2022-08-25 2022-08-25 Information processing method and device

Country Status (1)

Country Link
CN (1) CN115422270A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048735A (en) * 2023-03-23 2023-05-02 阿里云计算有限公司 Information processing method and object sharing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048735A (en) * 2023-03-23 2023-05-02 阿里云计算有限公司 Information processing method and object sharing method
CN116048735B (en) * 2023-03-23 2023-08-29 阿里云计算有限公司 Information processing method and object sharing method

Similar Documents

Publication Publication Date Title
CN110147437B (en) Knowledge graph-based searching method and device
CN108536467B (en) Code positioning processing method and device, terminal equipment and storage medium
CN109829073B (en) Image searching method and device
CN110245191B (en) Data processing method and device
CN111767047A (en) Micro-service component management method and device
CN111949324A (en) Distributed serial number generation method and device
CN113297269A (en) Data query method and device
KR20200121744A (en) Method and device for processing user personal, server and storage medium
CN113535749A (en) Query statement generation method and device
CN115422270A (en) Information processing method and device
CN112015918A (en) Data processing method and device
CN105138649A (en) Data search method and device and terminal
CN110263021B (en) Theme library generation method based on personalized label system
CN114416485A (en) Data processing method and device
CN106844406B (en) Search method and search device
CN114328632A (en) User data analysis method and device based on bitmap and computer equipment
CN112286947B (en) Method and device for keeping data consistency of different storage systems
CN111783415B (en) Template configuration method and device
CN114168589A (en) Index construction method and device
CN115576954B (en) Hash table determining method and device
CN111310088A (en) Page rendering method and device
CN113360287B (en) Data processing method and device
CN113239001A (en) Data storage method and device
CN109815195B (en) Query method, terminal and storage medium
CN113297199B (en) Method and device for using spatiotemporal data engine and Cassandra database system

Legal Events

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