CN105812189A - Information processing method and server - Google Patents

Information processing method and server Download PDF

Info

Publication number
CN105812189A
CN105812189A CN201610264338.7A CN201610264338A CN105812189A CN 105812189 A CN105812189 A CN 105812189A CN 201610264338 A CN201610264338 A CN 201610264338A CN 105812189 A CN105812189 A CN 105812189A
Authority
CN
China
Prior art keywords
user
cache table
current
unit
server
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.)
Granted
Application number
CN201610264338.7A
Other languages
Chinese (zh)
Other versions
CN105812189B (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610264338.7A priority Critical patent/CN105812189B/en
Publication of CN105812189A publication Critical patent/CN105812189A/en
Application granted granted Critical
Publication of CN105812189B publication Critical patent/CN105812189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an information processing method, which can process data based on user behavior and improve the concurrency performance of information processing. The method can comprise the following steps: comparing at least one second user with a user in a previous first cache table; according to a comparison result and a preset strategy, determining an inactive user and a new user in the previous first cache table, wherein the inactive user is used for representing a user with decreased user visitor volume in the previous first cache table; and determining a current first cache table by deleting user information of the inactive user from the previous cache table, and adding user information of the new user to the previous cache table. The embodiment of the invention further discloses a server.

Description

A kind of information processing method and server
Technical field
The present invention relates to the data processing technique in the communications field, particularly relate to a kind of information processing method and server.
Background technology
Along with developing rapidly of communication technology, the application based on communication technology also gets more and more, and most application needs user to carry out registering and logging in use, to ensure the safety of user account.Like this, server will store user profile when user registers.When user profile more (being typically in 100,000 grades to million grades) in the minds of in the account that certain application in server is corresponding is even higher, along with the increase of user's visit capacity in server, in order to ensure the normal access of user, the account information processing performance at center just becomes a very important Consideration.
In prior art, the account center of certain the application correspondence in server is based on MySQL database, the designs such as submeter point storehouse can be carried out and store user profile, when user carries out logging in access, server just can according to the identity (ID of user, identification) from MySQL database, corresponding user profile is obtained, whether correct to judge the logon information that user inputs, and then carry out logging in application.
But, when user to the access concurrency of a certain application bigger time, the visit capacity of MySQL database is just increased by this server, and at this moment server processes the concurrency performance of data simultaneously and just has bigger reduction.
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of information processing method and server, it is possible to based on user behavior, data are processed, and improves the concurrency performance of information processing.
The technical scheme is that and be achieved in that:
Embodiments provide a kind of information processing method, including:
Determine current first cache table being buffered in the first spatial cache based on user behavior, described current first cache table is for characterizing at least one maximum user of accessed amount and user profile thereof;
When receiving based on the first access request of the first user of user behavior, according to the first user identity ID in described first access request, it is judged that whether described first user is present in described current first cache table;
When described first user is present in described current first cache table, according to described first user ID, read, from described current first cache table, the first user information that described first user is corresponding, to carry out the checking of described first access request, and then complete described first access request.
In such scheme, the described method determining current first cache table being buffered in the first spatial cache based on user behavior, including:
Obtaining the current first any active ues table in the current preset time period based on user behavior, described current first any active ues table is for being characterized at least one second user that the described current preset time period amount of being accessed is maximum;
According to described current first any active ues table and previous first cache table, it is determined that described current first cache table.
In such scheme, described according to described current first any active ues table and previous first cache table, it is determined that described current first cache table, including:
At least one second user described is contrasted with the user in described previous first cache table;
According to comparing result and preset strategy, it is determined that go out the inactive users in described previous first cache table and Add User, described inactive users is for characterizing the user that the user's visit capacity in described previous first cache table reduces;
By the user profile of described inactive users being deleted from described previous cache table, and the described user profile Added User is added into described previous cache table, it is determined that described current first cache table.
In such scheme, described according to the first user identity ID in described first access request, it is judged that after whether described first user is present in described current first cache table, described method also includes:
When described first user is not present in described current first cache table, according to described first user ID, from presetting database, read described first user information, to carry out the checking of described first access request, and then complete described first access request.
In such scheme, after the described first user information of described acquisition, described method also includes:
Receiving the first amendment information of described first user, described first amendment information is for characterizing the amended information to described first user information;
Described first amendment information is added in default middle table;
According to described default middle table, described first user information is updated.
The embodiment of the present invention additionally provides a kind of server, including:
Determining unit, for determining current first cache table being buffered in the first spatial cache based on user behavior, described current first cache table is for characterizing at least one maximum user of accessed amount and user profile thereof;
Judging unit, for when receiving unit and receiving based on the first access request of the first user of user behavior, according to the first user identity ID in described first access request that described reception unit receives, it is judged that whether described first user is present in described is determined in described current first cache table that unit is determined;
Read unit, for when described judging unit judges that described first user is present in described current first cache table, according to described first user ID, from described determine described current first cache table that unit is determined read the first user information that described first user is corresponding, to carry out the checking of described first access request, and then complete described first access request.
In above-mentioned server, described server also includes: acquiring unit;
Described acquiring unit, for obtaining the current first any active ues table in the current preset time period based on user behavior, described current first any active ues table is for being characterized at least one second user that the described current preset time period amount of being accessed is maximum;
Described determine unit, specifically for the described current first any active ues table obtained according to described acquiring unit and previous first cache table, it is determined that described current first cache table.
In above-mentioned server, described server also includes: contrast unit, deletion unit and increase unit;
Described contrast unit, contrasts with the described user determined in described previous first cache table that unit is determined at least one second user described in being got by described acquiring unit;
Described determine unit, it is additionally operable to the comparing result and the preset strategy that draw according to described contrast unit, determining the inactive users in described previous first cache table and Add User, described inactive users is for characterizing the user that the user's visit capacity in described previous first cache table reduces;
Described determine unit, also particularly useful for by described deletion unit, the user profile of described inactive users is deleted from described previous cache table, and the described user profile Added User is added into described previous cache table by described increase unit, it is determined that described current first cache table.
In above-mentioned server, described reading unit, it is additionally operable to described judging unit according to the first user identity ID in described first access request, after judging whether described first user is present in described current first cache table, when described first user be not present in described determine in described current first cache table that unit is determined time, according to described first user ID, described first user information is read from presetting database, to carry out the checking of described first access request, and then complete described first access request.
In above-mentioned server, described server also includes: updating block;
Described reception unit, after being additionally operable to the described first user information of described acquisition, receives the first amendment information of described first user, and described first amendment information is for characterizing the amended information to described first user information;
Described increase unit, for adding to the described first amendment information that described reception unit receives in default middle table;
Described updating block, for the described default middle table after adding according to described increase unit, the described first user information that described reading unit is read is updated.
Embodiments providing a kind of information processing method and server, this server is by contrasting at least one second user with the user in previous first cache table;According to comparing result and preset strategy, it is determined that go out the inactive users in previous first cache table and Add User, this inactive users is for characterizing the user that the user's visit capacity in previous first cache table reduces;By the user profile of inactive users being deleted from previous cache table, and the user profile Added User is added into this previous cache table, it is determined that current first cache table.Adopt above-mentioned Implementation Technology, owing to server is in conjunction with the big data statistics system of self, statistical information according to any active ues, in dynamic the first buffer memory user profile of any active ues put in the first spatial cache, therefore, when server need obtain or read user user profile time, this server just can first directly be read out from the first cache table, thus improve user concurrent amount bigger time systematic function.
Accompanying drawing explanation
The flow chart one of a kind of information processing method that Fig. 1 provides for the embodiment of the present invention;
The flowchart 2 of a kind of information processing method that Fig. 2 provides for the embodiment of the present invention;
The storage format schematic diagram of a kind of exemplary user profile that Fig. 3 provides for the embodiment of the present invention;
The structural representation one of a kind of server that Fig. 4 provides for the embodiment of the present invention;
The structural representation two of a kind of server that Fig. 5 provides for the embodiment of the present invention;
The structural representation three of a kind of server that Fig. 6 provides for the embodiment of the present invention;
The structural representation four of a kind of server that Fig. 7 provides for the embodiment of the present invention;
The structural representation five of a kind of server that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
Embodiment one
The method embodiments provides a kind of information processing method, as it is shown in figure 1, may include that
S101, determining current first cache table being buffered in the first spatial cache based on user behavior, this current first cache table accessed measures at least one maximum users and user profile thereof for characterizing.
It should be noted that a kind of information processing method provided in the embodiment of the present invention is mainly used in user is used the process of the information in access process during application or data by client.The user profile corresponding with application can be stored in presetting database and be managed by general server.
Optionally, the user profile in the embodiment of the present invention can be the information such as user account, password, the pet name, personal information.
It should be noted that, when a certain application account is registered by user by client, this log-on message (user profile) can be stored in presetting database by server, and in the embodiment of the present invention, the log-on message of users maximum for user's visit capacity is stored in the first spatial cache by server with the form of current first cache table.
By arranging the first cache table at the first spatial cache in the embodiment of the present invention, and the mode that the user profile of users maximum for visit capacity is stored in the first storage table is alleviated the workload finding relevant user information in the original presetting database storing above-mentioned user profile from server.
It should be noted that the first cache table in the embodiment of the present invention updates always, at least one user that in current first cache table, the user profile of storage is always maximum with current accessed amount is corresponding.
Optionally, the update cycle of the first cache table can be preset time period, and the concrete time of concrete preset time period is determined by designer or practical situation, and the embodiment of the present invention is not limited as.Concrete, the realization of preset time period can be realized by the mode of the timed task of server.Preferably, in order to alleviate workload and the burden of server, it is possible to select to be undertaken by the time period that client and server interaction communication are the most idle user, for instance, 2 .-2 10 minutes.
Concrete, server obtains the current first any active ues table in the current preset time period based on user behavior, this current first any active ues table is for being characterized at least one second user that the current preset time period amount of being accessed is maximum, this server is according to current first any active ues table and previous first cache table, it is determined that current first cache table.
It should be noted that owing to the update cycle of the first cache table is preset time period, therefore, server can more newly determined current first cache table within the current preset time period.It is to say, there is also previous first cache table before current first cache table.
Especially, the first initial cache table is empty, does not namely store the user profile of user.
It is understandable that, in current first cache table in the embodiment of the present invention, storage is the user profile accessing the maximum user of server recently, that is, server needs timing acquisition user to pass through the relevant user information of the second maximum user of client-access server, i.e. current first any active ues table, so that previous first cache table is updated by server by current first any active ues table, obtain current first cache table.
Further, in embodiments of the present invention, what server was real-time adds up the application visit capacity based on user behavior, the i.e. accessed amount of server.
It should be noted that the method for concrete determining based on user behavior current first cache table that is buffered in the first spatial cache will be described in detail in subsequent embodiment.
S102, when receive based on the first access request of the first user of user behavior time, according to the first user identity (ID, identification) in this first access request, it is judged that whether this first user is present in current first cache table.
After server determines current first cache table, suffer owing to the user profile of users maximum for the visit capacity accessing server is stored in current first cache table through study after a while by this server, so, when this server receives based on the first access request of the first user of user behavior, this server just can according to the first user ID in the first access request, judge whether this first user is current active user, namely judge that this first user is one of at least one user that nearest visit capacity is maximum, due to current first cache table storage is exactly at least one maximum user of accessed amount and user profile thereof, therefore, it is just passable that this server judges whether this first user exists in current first cache table.
Concrete, server can according to the first user ID in this first access request, it is judged that whether have this first user ID in the user profile of storage in this current first cache table.
Exemplary, when the first access request in the embodiment of the present invention can log in a certain application for user by client, this client sends the first access request to server, in order to by the log-on message in this server, this time logging in of user is verified.
It should be noted that the operation behavior referring to user customer based on user behavior in the embodiment of the present invention, for instance, input user name and operate with the behavior logging in password etc..
S103, when first user is present in current first cache table, according to first user ID, read, from this current first cache table, the first user information that this first user is corresponding, to carry out the checking of the first access request, and then complete this first access request.
Server is according to the first user ID in this first access request, after judging whether this first user is present in current first cache table, when this server judges that first user is present in current first cache table, this server is just according to first user ID, read, from this current first cache table, the first user information that this first user is corresponding, and described first user information is carried out contrast verification with the information of user's input in the first access request, this first access request is accepted when server authentication is consistent.
It is understandable that, a kind of information processing method that the embodiment of the present invention provides, server is in conjunction with the big data statistics system of self, statistical information according to any active ues, in dynamic the first buffer memory user profile of any active ues put in the first spatial cache, when server need obtain or read user user profile time, this server just can first directly be read out from the first cache table, thus improve user concurrent amount bigger time systematic function.
Embodiment two
The method embodiments provides a kind of information processing method, as in figure 2 it is shown, may include that
S201, the user at least one second user and previous first cache table is contrasted.
S202, according to comparing result and preset strategy, it is determined that going out inactive users in previous first cache table and Add User, this inactive users is for characterizing the user that the user's visit capacity in previous first cache table reduces.
S203, by the user profile of inactive users is deleted from previous cache table, and the user profile Added User is added into this previous cache table, it is determined that current first cache table.
It should be noted that a kind of information processing method provided in the embodiment of the present invention is mainly used in user is used the process of the information in access process during application or data by client.The user profile corresponding with application can be stored in presetting database and be managed by general server.
Optionally, the user profile in the embodiment of the present invention can be the information such as user account, password, the pet name, personal information.
It should be noted that, when a certain application account is registered by user by client, this log-on message (user profile) can be stored in presetting database by server, and in the embodiment of the present invention, the log-on message of users maximum for user's visit capacity is stored in the first spatial cache by server with the form of current first cache table.
By arranging the first cache table at the first spatial cache in the embodiment of the present invention, and the mode that the user profile of users maximum for visit capacity is stored in the first storage table is alleviated the workload finding relevant user information in the original presetting database storing above-mentioned user profile from server.
It should be noted that the first cache table in the embodiment of the present invention updates always, at least one user that in current first cache table, the user profile of storage is always maximum with current accessed amount is corresponding.
Optionally, the update cycle of the first cache table can be preset time period, and the concrete time of concrete preset time period is determined by designer or practical situation, and the embodiment of the present invention is not limited as.Concrete, the realization of preset time period can be realized by the mode of the timed task of server.Preferably, in order to alleviate workload and the burden of server, it is possible to select to be undertaken by the time period that client and server interaction communication are the most idle user, for instance, 2 .-2 10 minutes.
Concrete, server obtains the current first any active ues table in the current preset time period based on user behavior, this current first any active ues table is for being characterized at least one second user that the current preset time period amount of being accessed is maximum, this server is according to current first any active ues table and previous first cache table, it is determined that current first cache table.
It should be noted that owing to the update cycle of the first cache table is preset time period, therefore, server can more newly determined current first cache table within the current preset time period.It is to say, there is also previous first cache table before current first cache table.
Especially, the first initial cache table is empty, does not namely store the user profile of user.
More specifically, at least one second user is contrasted with the user in previous first cache table;According to comparing result and preset strategy, it is determined that go out the inactive users in previous first cache table and Add User, this inactive users is for characterizing the user that the user's visit capacity in previous first cache table reduces;By the user profile of inactive users being deleted from previous cache table, and the user profile Added User is added into this previous cache table, it is determined that current first cache table.
Exemplary, account center (server) is regularly gone in the big data statistics system on backstage, read week any active ues table (the current first any active ues table of current preset time period), and in the Hash table (current first cache table) by user profile write Redis buffer memory (the first spatial cache) in all any active ues tables.In timed task (current preset time period) weekly, the buffer memory Hash table of traversal any active ues, and it is compared with all any active ues tables in data statistics system, if it is no longer active for weeks on end to there is user (user in previous first cache table) in Hash table, then the user profile of this user is rejected from the Hash table of buffer memory;If the second user in all any active ues tables compares, Hash table there is newly-increased user, then the user that this newly increases is added in the Hash table of buffer memory.Account, centrally through the Dynamic Maintenance of the Hash table to buffer memory, ensure that the increase that buffer memory will not be unlimited on the one hand;On the other hand, can guarantee that the timely of the user profile to newly-increased any active ues is added.
It should be noted that in order to realize the dynamic rejecting to inactive users, it is necessary to the end of the user profile in current first cache table increases the flag bit of a byte, this flag bit user's labelling inactive number of times.In week timed task (preset time period), server is not if it find that certain user in previous first cache table is in all any active ues tables, then the flag bit of this certain user is added 1, namely inactive number of times adds 1, when the inactive number of times of this certain user reaches rejecting threshold value (preset strategy) of default, then this certain user being defined as inactive users, this server obtains current first cache table by the inactive users in previous first cache table being deleted.
It should be noted that flag bit is 0 sign inactive number of times is 0, namely enliven.The value being masked as more big sign inactive number of times is more big.
Especially, user profile exists with the form of json character string in the first cache table, and character string itself carries an end mark, so by the mode increasing a byte at its end, not interfering with the reading manner of user profile.
Exemplary, it is assumed that user profile is Jordan, and its inactive number of times is 1, then the binary data storage form of this user profile is as shown in Figure 3.
It is understandable that, in current first cache table in the embodiment of the present invention, storage is the user profile accessing the maximum user of server recently, that is, server needs timing acquisition user to pass through the relevant user information of the second maximum user of client-access server, i.e. current first any active ues table, so that previous first cache table is updated by server by current first any active ues table, obtain current first cache table.
Further, in embodiments of the present invention, what server was real-time adds up the application visit capacity based on user behavior, the i.e. accessed amount of server.
S204, when receive based on the first access request of the first user of user behavior time, according to the first user ID in the first access request, it is judged that whether this first user is present in current first cache table.
After server determines current first cache table, suffer owing to the user profile of users maximum for the visit capacity accessing server is stored in current first cache table through study after a while by this server, so, when this server receives based on the first access request of the first user of user behavior, this server just can according to the first user ID in the first access request, judge whether this first user is current active user, namely judge that this first user is one of at least one user that nearest visit capacity is maximum, due to current first cache table storage is exactly at least one maximum user of accessed amount and user profile thereof, therefore, it is just passable that this server judges whether this first user exists in current first cache table.
Concrete, server can according to the first user ID in this first access request, it is judged that whether have this first user ID in the user profile of storage in this current first cache table.
Exemplary, when the first access request in the embodiment of the present invention can log in a certain application for user by client, this client sends the first access request to server, in order to by the log-on message in this server, this time logging in of user is verified.
It should be noted that the operation behavior referring to user customer based on user behavior in the embodiment of the present invention, for instance, input user name and operate with the behavior logging in password etc..
S205, when first user is present in current first cache table, according to first user ID, read, from this current first cache table, the first user information that this first user is corresponding, to carry out the checking of the first access request, and then complete this first access request.
Server is according to the first user ID in this first access request, after judging whether this first user is present in current first cache table, when this server judges that first user is present in current first cache table, this server is just according to first user ID, read, from this current first cache table, the first user information that this first user is corresponding, and described first user information is carried out contrast verification with the information of user's input in the first access request, this first access request is accepted when server authentication is consistent.
It is understandable that, a kind of information processing method that the embodiment of the present invention provides, server is in conjunction with the big data statistics system of self, statistical information according to any active ues, in dynamic the first buffer memory user profile of any active ues put in the first spatial cache, when server needs the user profile obtaining or reading user, this server just can first directly be read out from the first cache table.
S206, when first user is not present in current first cache table, according to first user ID, from presetting database read first user information, to carry out the checking of the first access request, and then complete this first access request.
Server is according to the first user ID in the first access request, after judging whether this first user is present in current first cache table, when this server judges that first user is not present in current first cache table, this server just can according to first user ID, first user information is read from presetting database, to carry out the checking of the first access request, and then complete this first access request.
It is understandable that, a kind of information processing method that the embodiment of the present invention provides, the user profile of any active ues (users that visit capacity is maximum) has been additionally carried out backup by server, it is stored in the first cache table of the first spatial cache, and other inactive users are still only stored in the presetting database of server, when server receives the first access request of these inactive users, this server just can according to first user ID, from presetting database, directly it is read out the user profile of first user, so, the information processing of the user of different active degrees is just distributed in different memory areas by server, thus improve user concurrent amount bigger time systematic function.
It should be noted that S205 and S206 is the optional step after S204, a kind of information processing method that the embodiment of the present invention provides is after S204, it is possible to perform S205, it is also possible to perform S206, concrete, and execution sequence is that the result judged by reality determines.
S207, receiving the first amendment information of first user, this first amendment information is for characterizing the amended information to first user information.
Server is carrying out being proved to be successful of the first access request, and then after accepting this first access request, owing to this first user is verified as validated user by server, therefore, the user profile that first user is corresponding just can be carried out edit operation by client by this first user, such as, the operations such as amendment user profile, then, this server is received by the first amendment information of this first user, wherein, this first amendment information user characterizes the amended information of first user information.
Exemplary, user A passes through to input account and code entry application B in client, after logging in successful Application B, its password is modified by this user A at the interface that arranges of application B, then, the server corresponding with client has been received by the first amendment request that client sends, and carries the first amendment information in this first amendment request.
S208, the first amendment information is added in default middle table.
This first amendment information is saved in a newly-established middle table after receiving the first amendment information of first user by server.
It should be noted that the middle table in the embodiment of the present invention is be different from a data storage areas of presetting database.It is to say, the amendment information of the user profile in the embodiment of the present invention is individually storage.
It is understood that when user revises user profile, amended user profile can be stored in a middle table by server.This way it is possible to avoid in the face of the data of the great presetting database of data volume.The information of middle table only comprises user and is likely to the information of amendment, in this manner it is possible to reduce the structure of middle table, and then reduce the data volume of middle table, and whois lookup gets up more convenient.
S209, basis preset middle table, and first user information is updated.
After first amendment information is added in default middle table by server, first user information just can be updated by this server according to default middle table, owing to this first user information can be stored in presetting database, it is also possible to be stored in current first cache table, therefore, this server reads the first user information user profile to the first user in presetting database from middle table and is updated, when this first user is current active user (when being present in current first cache table), this server is also by the user profile of the first user in the first amendment information updating of reading from middle table to current first cache table, to ensure that current active user revises the coming into force property immediately of information.
It should be noted that it can be that the timing of server performs function that the amendment of first user information in the embodiment of the present invention updates, namely by the timed task of server, repair work what regularly carry out first user.Owing to the data volume of middle table is little, user is by client when amendment user profile, and the amendment of server or the speed of service can be greatly improved.Meanwhile, server is in order to avoid the increase of middle table, it is possible to introduces a timed task, the amendment data in middle table is updated in presetting database.Therefore, in order to reduce the load of server, this timed task can be placed on morning server to carry out when not being in a hurry.
Further, when server need to feel wronged and act rashly user's confidence of first user carry out account checking time, this server can first judge whether to read from current first cache table, if can not, from presetting database, then read the user profile of first user, last amendment due to first user is likely timing amendment, when server reads the user profile of first user, it is likely to also not carry out the amendment of the user profile of first user, therefore, at server after the user profile carrying out first user from presetting database reads, also middle table is read out, whether the user profile to detect this first user there occurs amendment, to ensure the accuracy of checking.
Embodiment three
As shown in Figure 4, a kind of server 1 that the embodiment of the present invention provides, this server 1 may include that
Determining unit 10, for determining current first cache table being buffered in the first spatial cache based on user behavior, described current first cache table is for characterizing at least one maximum user of accessed amount and user profile thereof.
Judging unit 11, for when receiving unit 12 and receiving based on the first access request of the first user of user behavior, according to the first user identity ID in described first access request that described reception unit 12 receives, it is judged that whether described first user is present in described is determined in described current first cache table that unit 10 is determined.
Read unit 13, for when described judging unit 11 judges that described first user is present in described current first cache table, according to described first user ID, from described determine described current first cache table that unit 10 is determined read the first user information that described first user is corresponding, to carry out the checking of described first access request, and then complete described first access request.
Optionally, as it is shown in figure 5, described server 1 also includes: acquiring unit 14.
Described acquiring unit 14, for obtaining the current first any active ues table in the current preset time period based on user behavior, described current first any active ues table is for being characterized at least one second user that the described current preset time period amount of being accessed is maximum.
Described determine unit 10, specifically for the described current first any active ues table obtained according to described acquiring unit 14 and previous first cache table, it is determined that described current first cache table.
Optionally, as shown in Figure 6, described server 1 also includes: contrast unit 15, deletion unit 16 and increase unit 17.
Described contrast unit 15, contrasts with the described user determined in described previous first cache table that unit 10 is determined at least one second user described in being got by described acquiring unit 14.
Described determine unit 10, it is additionally operable to the comparing result and the preset strategy that draw according to described contrast unit 15, determining the inactive users in described previous first cache table and Add User, described inactive users is for characterizing the user that the user's visit capacity in described previous first cache table reduces.
Described determine unit 10, also particularly useful for by described deletion unit 16, the user profile of described inactive users is deleted from described previous cache table, and the described user profile Added User is added into described previous cache table by described increase unit 17, it is determined that described current first cache table.
Optionally, described reading unit 13, it is additionally operable to described judging unit 11 according to the first user identity ID in described first access request, after judging whether described first user is present in described current first cache table, when described first user be not present in described determine in described current first cache table that unit 10 is determined time, according to described first user ID, described first user information is read from presetting database, to carry out the checking of described first access request, and then complete described first access request.
Optionally, as it is shown in fig. 7, described server 1 also includes: updating block 18.
Described reception unit 12, after being additionally operable to the described first user information of described acquisition, receives the first amendment information of described first user, and described first amendment information is for characterizing the amended information to described first user information.
Described increase unit 17, adds in default middle table for the described first amendment information received by described reception unit 12.
Described updating block 18, for the described default middle table after adding according to described increase unit 17, the described first user information that described reading unit 13 is read is updated.
nullAs shown in Figure 8,In actual applications,Above-mentioned determine unit 10、Judging unit 11、Read unit 13、Acquiring unit 14、Contrast unit 15、Delete unit 16、Increase unit 17 and updating block 18 can be realized by the processor 19 being positioned on server,It is specially central processing unit (CPU)、Microprocessor (MPU)、Digital signal processor (DSP) or field programmable gate array (FPGA) etc. realize,And reception unit 12 can be realized by the receptor 110 on server,Server can also include memorizer 111 and transmitter 112,For sending communication data to client,This memorizer 111、Transmitter 112 and receptor 110 can be connected with processor 19,Wherein,Memorizer 111 is used for storing executable program code,This program code includes computer-managed instruction,Memorizer is likely to comprise high-speed RAM memorizer,It is likely to and also includes nonvolatile memory,Such as,At least one disk memory.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, be only presently preferred embodiments of the present invention, is not intended to limit protection scope of the present invention.

Claims (10)

1. an information processing method, it is characterised in that including:
Determine current first cache table being buffered in the first spatial cache based on user behavior, described current first cache table is for characterizing at least one maximum user of accessed amount and user profile thereof;
When receiving based on the first access request of the first user of user behavior, according to the first user identity ID in described first access request, it is judged that whether described first user is present in described current first cache table;
When described first user is present in described current first cache table, according to described first user ID, read, from described current first cache table, the first user information that described first user is corresponding, to carry out the checking of described first access request, and then complete described first access request.
2. method according to claim 1, it is characterised in that the described method determining current first cache table being buffered in the first spatial cache based on user behavior, including:
Obtaining the current first any active ues table in the current preset time period based on user behavior, described current first any active ues table is for being characterized at least one second user that the described current preset time period amount of being accessed is maximum;
According to described current first any active ues table and previous first cache table, it is determined that described current first cache table.
3. method according to claim 2, it is characterised in that described according to described current first any active ues table and previous first cache table, it is determined that described current first cache table, including:
At least one second user described is contrasted with the user in described previous first cache table;
According to comparing result and preset strategy, it is determined that go out the inactive users in described previous first cache table and Add User, described inactive users is for characterizing the user that the user's visit capacity in described previous first cache table reduces;
By the user profile of described inactive users being deleted from described previous cache table, and the described user profile Added User is added into described previous cache table, it is determined that described current first cache table.
4. method according to claim 1, it is characterised in that described according to the first user identity ID in described first access request, it is judged that after whether described first user is present in described current first cache table, described method also includes:
When described first user is not present in described current first cache table, according to described first user ID, from presetting database, read described first user information, to carry out the checking of described first access request, and then complete described first access request.
5. the method according to any one of Claims 1-4, it is characterised in that after the described first user information of described acquisition, described method also includes:
Receiving the first amendment information of described first user, described first amendment information is for characterizing the amended information to described first user information;
Described first amendment information is added in default middle table;
According to described default middle table, described first user information is updated.
6. a server, it is characterised in that including:
Determining unit, for determining current first cache table being buffered in the first spatial cache based on user behavior, described current first cache table is for characterizing at least one maximum user of accessed amount and user profile thereof;
Judging unit, for when receiving unit and receiving based on the first access request of the first user of user behavior, according to the first user identity ID in described first access request that described reception unit receives, it is judged that whether described first user is present in described is determined in described current first cache table that unit is determined;
Read unit, for when described judging unit judges that described first user is present in described current first cache table, according to described first user ID, from described determine described current first cache table that unit is determined read the first user information that described first user is corresponding, to carry out the checking of described first access request, and then complete described first access request.
7. server according to claim 6, it is characterised in that described server also includes: acquiring unit;
Described acquiring unit, for obtaining the current first any active ues table in the current preset time period based on user behavior, described current first any active ues table is for being characterized at least one second user that the described current preset time period amount of being accessed is maximum;
Described determine unit, specifically for the described current first any active ues table obtained according to described acquiring unit and previous first cache table, it is determined that described current first cache table.
8. server according to claim 7, it is characterised in that described server also includes: contrast unit, deletion unit and increase unit;
Described contrast unit, contrasts with the described user determined in described previous first cache table that unit is determined at least one second user described in being got by described acquiring unit;
Described determine unit, it is additionally operable to the comparing result and the preset strategy that draw according to described contrast unit, determining the inactive users in described previous first cache table and Add User, described inactive users is for characterizing the user that the user's visit capacity in described previous first cache table reduces;
Described determine unit, also particularly useful for by described deletion unit, the user profile of described inactive users is deleted from described previous cache table, and the described user profile Added User is added into described previous cache table by described increase unit, it is determined that described current first cache table.
9. server according to claim 6, it is characterised in that
Described reading unit, it is additionally operable to described judging unit according to the first user identity ID in described first access request, after judging whether described first user is present in described current first cache table, when described first user be not present in described determine in described current first cache table that unit is determined time, according to described first user ID, from presetting database, read described first user information, to carry out the checking of described first access request, and then complete described first access request.
10. the server according to any one of claim 6 to 9, it is characterised in that described server also includes: updating block;
Described reception unit, after being additionally operable to the described first user information of described acquisition, receives the first amendment information of described first user, and described first amendment information is for characterizing the amended information to described first user information;
Described increase unit, for adding to the described first amendment information that described reception unit receives in default middle table;
Described updating block, for the described default middle table after adding according to described increase unit, the described first user information that described reading unit is read is updated.
CN201610264338.7A 2016-04-26 2016-04-26 A kind of information processing method and server Active CN105812189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610264338.7A CN105812189B (en) 2016-04-26 2016-04-26 A kind of information processing method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610264338.7A CN105812189B (en) 2016-04-26 2016-04-26 A kind of information processing method and server

Publications (2)

Publication Number Publication Date
CN105812189A true CN105812189A (en) 2016-07-27
CN105812189B CN105812189B (en) 2019-06-28

Family

ID=56458568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610264338.7A Active CN105812189B (en) 2016-04-26 2016-04-26 A kind of information processing method and server

Country Status (1)

Country Link
CN (1) CN105812189B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446107A (en) * 2016-09-05 2017-02-22 努比亚技术有限公司 Processing device and method for configuration files
CN108833495A (en) * 2018-05-24 2018-11-16 努比亚技术有限公司 Data cache method, equipment and the computer readable storage medium of user's request
CN109034982A (en) * 2018-09-05 2018-12-18 满金坝(深圳)科技有限公司 Order information accelerated processing method and device in millions order table
CN110704456A (en) * 2018-06-22 2020-01-17 中兴通讯股份有限公司 Method and device for updating business rules and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663096A (en) * 2012-04-11 2012-09-12 北京像素软件科技股份有限公司 Method for reading data based on data cache technology
CN103488644A (en) * 2012-06-12 2014-01-01 联想(北京)有限公司 Method for carrying out data storage and database system
CN104331492A (en) * 2014-11-14 2015-02-04 北京国双科技有限公司 Method and device for caching multi-instance data
CN104917823A (en) * 2015-05-15 2015-09-16 无锡联云世纪信息技术有限公司 Cloud platform network acceleration system
CN105335494A (en) * 2015-10-20 2016-02-17 广州唯品会信息科技有限公司 User data input method and system
CN105447171A (en) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 Data caching method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663096A (en) * 2012-04-11 2012-09-12 北京像素软件科技股份有限公司 Method for reading data based on data cache technology
CN103488644A (en) * 2012-06-12 2014-01-01 联想(北京)有限公司 Method for carrying out data storage and database system
CN104331492A (en) * 2014-11-14 2015-02-04 北京国双科技有限公司 Method and device for caching multi-instance data
CN104917823A (en) * 2015-05-15 2015-09-16 无锡联云世纪信息技术有限公司 Cloud platform network acceleration system
CN105335494A (en) * 2015-10-20 2016-02-17 广州唯品会信息科技有限公司 User data input method and system
CN105447171A (en) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 Data caching method and apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446107A (en) * 2016-09-05 2017-02-22 努比亚技术有限公司 Processing device and method for configuration files
CN108833495A (en) * 2018-05-24 2018-11-16 努比亚技术有限公司 Data cache method, equipment and the computer readable storage medium of user's request
CN110704456A (en) * 2018-06-22 2020-01-17 中兴通讯股份有限公司 Method and device for updating business rules and computer readable storage medium
CN109034982A (en) * 2018-09-05 2018-12-18 满金坝(深圳)科技有限公司 Order information accelerated processing method and device in millions order table
CN109034982B (en) * 2018-09-05 2022-06-17 满金坝(深圳)科技有限公司 Method and device for accelerating processing of order information in ten-million-level order form

Also Published As

Publication number Publication date
CN105812189B (en) 2019-06-28

Similar Documents

Publication Publication Date Title
KR102079860B1 (en) Text address processing method and device
CN105812189A (en) Information processing method and server
CN106487744B (en) Shiro verification method based on Redis storage
US11514003B2 (en) Data compression based on key-value store
CN108205560B (en) Data synchronization method and device
WO2021139109A1 (en) Method and apparatus for writing into state database, electronic device, and storage medium
CN102882974A (en) Method for saving website access resource by website identification version number
CN112528262A (en) Application program access method, device, medium and electronic equipment based on token
CN106021566A (en) Method, device and system for improving concurrent processing capacity of single database
CN103729247A (en) Data acquisition request processing method and system and server
CN105677646A (en) Word stock generation method and system, and server
CN104484482A (en) Webpage information updating method and system of network platform
CN105022939A (en) Information verification method and device
CN110222046B (en) List data processing method, device, server and storage medium
CN115455058A (en) Cache data processing method and device, computer equipment and storage medium
CN111898036A (en) Behavior data collecting and processing system and method
CN103377292B (en) Database result set caching method and device
US20120324560A1 (en) Token data operations
CN106156291A (en) The caching method of static resource and system thereof based on Localstroage
US11394748B2 (en) Authentication method for anonymous account and server
CN109857742B (en) Big data virtual table rapid display method and system
US10871945B2 (en) Resumable merge sort
CN115357779A (en) Data processing method, device and system, electronic equipment and storage medium
CN114048443A (en) User identity verification method and device and computer storage medium
US20220066682A1 (en) Consistent Entity Tags With Multiple Protocol Data Access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant