WO2014067437A1 - 数据处理的方法和系统 - Google Patents
数据处理的方法和系统 Download PDFInfo
- Publication number
- WO2014067437A1 WO2014067437A1 PCT/CN2013/086090 CN2013086090W WO2014067437A1 WO 2014067437 A1 WO2014067437 A1 WO 2014067437A1 CN 2013086090 W CN2013086090 W CN 2013086090W WO 2014067437 A1 WO2014067437 A1 WO 2014067437A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- operation request
- minimum
- unit
- data buffer
- buffer layer
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 151
- 230000008569 process Effects 0.000 claims description 131
- 238000012545 processing Methods 0.000 claims description 37
- 230000007774 longterm Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 12
- 230000003139 buffering effect Effects 0.000 description 10
- 230000009286 beneficial effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/306—User profiles
Definitions
- the present invention relates to the field of network communication technologies, and in particular, to a data processing method and system. Background technique
- a long relationship chain user refers to a user whose number of listeners exceeds a certain number, such as a star authenticated user. Since the long relationship chain users have too many listeners and the amount of data generated is relatively large, how to improve the speed of responding to huge requests and complete services as soon as possible is a basic problem that needs to be solved.
- the data buffer layer receives an operation request of a listener of a long relationship chain user of the client, where the operation request includes: adding a listener request, modifying a listener request, or deleting a listener request, etc.; afterwards, the data buffer layer receives The operation request is synchronized to the stream module; after receiving the operation request sent by the data buffer layer, the Stream module saves each operation request in the corresponding database in hours, and the database completely stores a long All the listener information of the relationship chain user; afterwards, the Stream module actively pushes the operation request in each database to the Friend module at regular intervals; after receiving the operation request pushed by the Stream module, the Friend module follows the operation request The listener information in the database corresponding to the long relationship chain user performs an operation.
- the embodiment of the present invention provides a data processing method and system.
- the technical solution is as follows:
- a method of data processing comprising: The data buffer layer receives an operation request of a listener of the long relationship chain user of the client, and pushes the operation request to the business layer;
- the service layer Receiving, by the service layer, the operation request that is sent by the data buffer layer, and buffering the operation request according to a minimum storage unit, where the minimum storage unit is divided by the long relationship chain user;
- the service layer finds a designated database belonging to the long relationship chain user according to a preset routing configuration, and requests the specified The database operates.
- the pushing the operation request to the service layer includes:
- the data buffer layer calculates a minimum operating unit of the long relationship chain user, routing the operation request to the minimum operating unit of the business layer.
- the service layer receives the operation request that is pushed by the data buffer layer, and caches the operation request according to a minimum storage unit, including:
- the warehousing process in the business layer reads the minimum operation unit to obtain the operation request in the minimum operation unit, and calculates a minimum storage unit to which the operation request belongs, and caches the operation request to In the minimum storage unit.
- the method further includes:
- the receiving process adds one to the synchronization sequence number of the minimum operation unit, where the synchronization sequence number is used to identify the synchronization progress of the receiving process and the data buffer layer.
- the inbound process in the service layer reads the minimum operation unit to obtain the operation request in the minimum operation unit, including:
- the warehousing process reads the synchronization sequence number of the minimum operation unit in the receiving process, and determines whether the synchronization sequence number of the minimum operation unit is greater than the read sequence number of the minimum operation unit saved locally, and if so, reads And taking the operation request in the minimum operation unit, where the read sequence number is used to identify a synchronization progress of the warehousing process and the receiving process.
- a system for data processing includes: a data buffer layer and a service layer; the data buffer layer is configured to receive an operation request of a listener of a long relationship chain user of the client, and An operation request is pushed to the business layer;
- the service layer is configured to receive the operation request pushed by the data buffer layer, and press the operation request Caching according to a minimum storage unit, wherein the minimum storage unit is divided by the long relationship chain user;
- the service layer is further configured to: when the data cached in the minimum storage unit reaches a preset condition, find a designated database that belongs to the long relationship chain user according to a preset routing configuration, and follow the operation request.
- the specified database operates.
- the data buffer layer is configured to calculate a minimum operation unit of the long relationship chain user, and route the operation request to the minimum operation unit of the service layer.
- the service layer includes a receiving process and a warehousing process
- a receiving process in the service layer configured to receive the operation request pushed by the data buffer layer, and cache the operation request into the minimum operation unit;
- the inbound process in the service layer is configured to read the minimum operation unit to obtain the operation request in the minimum operation unit, and calculate a minimum storage unit to which the operation request belongs, and the operation is performed.
- the request is cached into the smallest storage unit.
- the receiving process in the service layer is further configured to add one to the synchronization sequence number of the minimum operation unit, where the synchronization sequence number is used to identify the synchronization progress of the receiving process and the data buffer layer. .
- the warehousing process in the service layer is used by the warehousing process to read the synchronization sequence number of the minimum operation unit in the receiving process, and determine whether the synchronization sequence number of the minimum operation unit is greater than locally saved a read sequence number of the minimum operation unit, if yes, reading the operation request in the minimum operation unit, wherein the read sequence number is used to identify synchronization between the warehousing process and the receiving process schedule.
- the data buffer layer receives an operation request of a listener of a long relationship chain user of the client, and pushes the operation request to the service layer;
- the service layer receives the data An operation request that is sent by the buffer layer, and the operation request is cached according to a minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds the information according to a preset routing configuration.
- the specified database of the long relationship chain user and operates on the specified database according to the operation request.
- the service layer when the service layer receives the operation request of the listener pushed by the data buffer layer, the service layer can store the operation request according to the minimum storage unit, thereby implementing the batch operation on the underlying database. It reduces the operational burden of data and improves the processing speed of the listener information of long relationship chains.
- FIG. 1 is a schematic diagram of a system for data processing according to Embodiment 1 of the present invention.
- FIG. 2 is a schematic diagram of another system for data processing according to Embodiment 1 of the present invention.
- FIG. 3 is a flowchart of a method for data processing according to Embodiment 2 of the present invention.
- FIG. 5 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention. detailed description
- a data processing system is provided in this embodiment, where the system includes: a data buffer layer 101 and a service layer 102;
- the data buffer layer 101 is configured to receive an operation request of a listener of a long relationship chain user of the client, and push the operation request to the service layer 102;
- the service layer 102 is configured to receive the operation request that is sent by the data buffer layer 101, and cache the operation request according to a minimum storage unit, where the minimum storage unit is the long relationship chain user. Divided into units;
- the service layer 102 is further configured to: when the data cached in the minimum storage unit reaches a preset condition, find a designated database that belongs to the long relationship chain user according to a preset routing configuration, and follow the operation request. Operate the specified database.
- the data buffer layer 101 is configured to calculate a minimum operation unit of the long relationship chain user, and route the operation request to the minimum operation unit of the service layer 102.
- the service layer 102 further includes a receiving process 102a and a warehousing process 102b.
- the receiving process 102a in the service layer 102 is configured to receive the data buffer layer 101 and push it. The operation request, and buffering the operation request into the minimum operation unit;
- the warehousing process 102b in the business layer 102 is configured to read the minimum operation unit to obtain the operation request in the minimum operation unit, and calculate a minimum storage unit to which the operation request belongs, The operation request is cached into the minimum storage unit.
- the receiving process 102a in the service layer 102 is further used to synchronize the sequence of the minimum operating unit.
- the number is cumulatively added, wherein the synchronization sequence number is used to identify the synchronization progress of the receiving process 102a and the data buffer layer 101.
- the warehousing process 102b in the service layer 102 is configured to read the synchronization sequence number of the minimum operation unit in the receiving process 102a, and determine whether the synchronization sequence number of the minimum operation unit is greater than the minimum value saved locally. Reading the sequence number of the operation unit, if yes, reading the operation request in the minimum operation unit, wherein the read sequence number is used to identify the synchronization progress of the warehousing process 102b and the receiving process 102a .
- the beneficial effect of the embodiment is: the data buffer layer receives an operation request of the listener of the long relationship chain user of the client, and pushes the operation request to the service layer; the service layer receives the operation request pushed by the data buffer layer
- the operation request is cached according to a minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds a designated user belonging to the long relationship chain according to a preset route configuration. a database, and operating on the specified database in accordance with the operation request.
- the service layer By dividing the minimum storage unit by the long relationship chain user unit, when the service layer receives the operation request of the listener pushed by the data buffer layer, the service layer can store the operation request according to the minimum storage unit, thereby implementing the batch operation on the underlying database. It reduces the operational burden of data and improves the processing speed of the listener information of long relationship chains.
- the embodiment provides a data processing method, including:
- the data buffer layer receives an operation request of a listener of the long relationship chain user of the client, and pushes the operation request to the service layer.
- the service layer receives the operation request that is sent by the data buffer layer, and caches the operation request according to a minimum storage unit, where the minimum storage unit is performed by using the long relationship chain user. Divided
- the service layer finds a designated database that belongs to the long relationship chain user according to a preset routing configuration, and performs the operation according to the operation request.
- the specified database is operating.
- the step of pushing the operation request to the service layer includes but is not limited to:
- the data buffer layer calculates a minimum operation unit of the long relationship chain user, and routes the operation request to the minimum operation unit of the service layer.
- the service layer receives the operation request pushed by the data buffer layer, and caches the operation request according to a minimum storage unit, including but not limited to: Receiving, by the receiving process in the service layer, the operation request pushed by the data buffer layer, and buffering the operation request into the minimum operation unit;
- the warehousing process in the business layer reads the minimum operation unit to obtain the operation request in the minimum operation unit, and calculates a minimum storage unit to which the operation request belongs, and caches the operation request to In the minimum storage unit.
- the method further includes:
- the receiving process adds one to the synchronization sequence number of the minimum operation unit, where the synchronization sequence number is used to identify the synchronization progress of the receiving process and the data buffer layer.
- the inbound process in the service layer reads the minimum operation unit to obtain the operation request in the minimum operation unit, including but not limited to:
- the warehousing process reads the synchronization sequence number of the minimum operation unit in the receiving process, and determines whether the synchronization sequence number of the minimum operation unit is greater than the read sequence number of the minimum operation unit saved locally, and if so, reads And taking the operation request in the minimum operation unit, where the read sequence number is used to identify a synchronization progress of the warehousing process and the receiving process.
- the beneficial effect of the embodiment is: the data buffer layer receives an operation request of the listener of the long relationship chain user of the client, and pushes the operation request to the service layer; the service layer receives the operation request pushed by the data buffer layer And the operation request is cached according to the minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds a user belonging to the long relationship chain according to a preset route configuration.
- the specified database, and the specified database is operated according to the operation request.
- an embodiment of the present invention provides a data processing method, where the method process includes:
- the data buffer layer receives an operation request of a listener of a long relationship chain user of the client, and pushes the operation request to the service layer.
- the data buffer layer pushes the operation request to the service layer, including but not limited to:
- a data buffer layer calculates a minimum operating unit of the long relationship chain user, routing the operation request to the minimum In the operating unit.
- the service layer is divided into a receiving process and a warehousing process, and the buffer in the receiving process is divided into a plurality of minimum operating units; wherein, the minimum operating unit is obtained by the long relationship chain user Uin modulo 4999.
- the Uin includes the account number of the user, and the like, which is not specifically limited in this embodiment.
- the minimum operation unit of the long relationship chain user is calculated, wherein the specific calculation method is to use the long relationship chain user Uin module 4999.
- the operation request is routed to the business layer according to the minimum operation unit of the long relationship chain user.
- the operation request of the listener of the long relationship chain user includes: adding a request, deleting the request, forwarding the message request, or requesting a comment on the message, etc., which is not specifically limited in this embodiment.
- the receiving process in the service layer receives an operation request pushed by the data buffer layer, and caches the operation request into a minimum operation unit.
- the receiving process caches the received operation request into the minimum operation unit according to the routing destination address of the data buffer layer.
- the operation request is used to record the audience operation information of the long relationship chain user. For example, record long relationship chain user X add listener a; record long relationship chain user y add listener b; record long relationship chain user X delete listener c, etc.
- the receiving process saves a synchronization sequence number for each of the minimum operation units in the cache, and the synchronization sequence number is used to identify the synchronization progress of the receiving process and the data buffer layer. After the receiving process receives an operation request, it adds one to the synchronization sequence number of the smallest operating unit that caches the operation request.
- the third minimum operating unit is saved after the third minimum operating unit saves the operation request.
- the synchronization sequence number is incremented by one.
- the synchronization sequence number of the minimum operation unit is cumulatively increased by one. For example, if the original synchronization sequence number is 5, the cumulative one is 6 and then.
- the inbound process in the service layer reads the minimum operation unit to obtain the operation request in the minimum operation unit.
- the receiving sequence is a synchronization sequence number saved by each of the minimum operating units
- the warehousing process saves a corresponding reading sequence number for each of the minimum operating units, and the reading sequence number is used to identify the warehousing process and the receiving process.
- Synchronization progress that is, the progress of the synchronization of the operation request and the receiving process in each of the smallest operation units read by the inbound process.
- the warehousing process determines whether there is a new synchronous operation request in a certain operation unit by comparing the read sequence number and the synchronization sequence number, so that a new operation request can be read in time.
- the inbound process in the service layer reads the minimum operation unit to obtain an operation request in the minimum operation unit, which specifically includes:
- the warehousing process reads the synchronization sequence number of the minimum operation unit in the receiving process, and determines whether the synchronization sequence number of the minimum operation unit is greater than the read sequence number of the minimum operation unit saved locally, and if so, reads The operation request in the minimum operation unit is taken.
- the warehousing process calculates a minimum storage unit to which the operation request belongs, and caches the operation request according to the minimum storage unit.
- the smallest data storage unit is re-divided in units of long relationship chain users, so that a long relationship chain user corresponds to a database, so that the inbound process only needs to operate on a certain minimum operation unit when performing data processing. Instead of having to manipulate the data of all long relationship chain users, the burden of data operations is reduced.
- the listener information of the long relationship chain user may be further divided, so that a minimum operation unit only includes the part of the long relationship chain user. Audience information.
- the preset number may be preset according to the experience value, and may also be adjusted according to the current operating efficiency of the system, which is not specifically limited in this embodiment.
- the warehousing process calculates the minimum storage unit to which the operation request belongs, including but not limited to: according to the long relationship chain user Uin, the listener Uin, and the configured minimum number of storage units of the long relationship chain user, The smallest storage unit to which the operation request belongs.
- the specific representation is as follows: Long relationship chain user Uin—the number of the smallest storage unit configured by the fan Uin%. For example, if the Uin of the long relationship chain user is configured to be 12345678, and the minimum storage unit is configured for it, the configured minimum storage.
- the units are: 12345678-0, 12345678-1, . . . , 12345678-8.
- the operation request is cached according to the minimum storage unit, that is, the operation request is cached in the minimum storage unit.
- Steps 302-304 are performed by the service layer to receive an operation request pushed by the data buffer layer, and the operation request is cached according to the minimum storage unit.
- the warehousing process determines whether the data cached in the minimum storage unit reaches a preset condition, and if yes, executes step 306, otherwise returns to step 303 to execute;
- the warehousing process periodically scans each of the minimum storage units, and when it is detected that a certain minimum storage unit reaches the warehousing condition, the operation data in the minimum storage unit is routed to the corresponding database for storage.
- the warehousing process scans to the minimum storage unit in step 304, it is determined whether the data cached in the minimum storage unit reaches a preset condition, and if so, the entry of the data in the minimum storage unit is performed. Library operations.
- the preset condition that is, the storage condition may be preset according to the experience value, or may be adjusted in real time according to the current running condition of the system, which is not specifically limited in this embodiment. 306.
- the service layer finds a specified database that belongs to the long relationship chain user according to a preset routing configuration, and performs operations on the specified database according to the operation request.
- a plurality of databases are set, and routing configuration is performed in advance according to the rule of the long relationship chain user Uin modulo 4999, and the service layer finds a designated database belonging to the long relationship chain user according to a preset routing configuration, and according to the The operation request operates on the specified database. For example, if the operation request is to add a friend request, the data addition operation is performed in the database, and the operation request is a deletion request, and the data deletion operation is performed in the database.
- the beneficial effect of the embodiment is: the data buffer layer receives an operation request of the listener of the long relationship chain user of the client, and pushes the operation request to the service layer; the service layer receives the operation request pushed by the data buffer layer
- the operation request is cached according to a minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds a designated user belonging to the long relationship chain according to a preset route configuration. a database, and operating on the specified database in accordance with the operation request.
- the service layer can store the operation request according to the minimum storage unit, thereby implementing the batch operation on the underlying database. It reduces the operational burden of data and improves the processing speed of the listener information of long relationship chains.
- the operation request is saved to a different database, so that the user's audience information is separated from the database level, further reducing the operation load of the server and improving the performance of the system.
- the buffering is also performed in units of the minimum operating unit, thereby further reducing the operational burden of the service layer and improving the processing speed of the data.
- an embodiment of the present invention provides a schematic structural diagram of a terminal, which is a schematic structural diagram of a touch sensitive surface according to an embodiment of the present invention.
- the terminal can be used to implement data processing provided in the foregoing embodiment. Methods. Specifically:
- the terminal 500 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, including One or more processing core processor 180, and power supply 190 and the like.
- RF Radio Frequency
- the RF circuit 110 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 180; in addition, transmitting uplink data to the base station .
- the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and an LNA (Low Noise). Put Large), duplexer, etc.
- SIM Subscriber Identity Module
- RF circuitry 110 can also communicate with the network and other devices via wireless communication.
- the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobi le communication), GPRS (General Packet Radio Service) CDMA (Code Division Multiple Access) , Code Division Multiple Access) WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service, Short Message Service), etc.
- GSM Global System of Mobi le communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- SMS Short Messaging Service
- Short Message Service Short Message Service
- the memory 120 can be used to store software programs and modules, such as software programs and modules corresponding to the devices for improving the running speed of the application in the third embodiment, and the processor 180 executes various functions by running software programs and modules stored in the memory 120.
- Application and data processing such as improving the running speed of the application.
- the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to terminal
- memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
- the input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
- input unit 130 can include touch sensitive surface 131 as well as other input devices 132.
- Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
- the touch-sensitive surface 131 may include two portions of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
- the processor 180 is provided and can receive commands from the processor 180 and execute them.
- the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 130 can also include other input devices 132.
- other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 500, which can be composed of graphics, text, icons, video, and any combination thereof.
- the display unit 140 may include a display panel 141.
- the display surface may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Board 141.
- the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
- touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
- Terminal 500 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal 500 moves to the ear. / or backlight.
- the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the gesture of the mobile phone.
- terminal 500 can also be configured with gyroscope, barometer, hygrometer, thermometer, infrared sensor Other sensors, etc., will not be described here.
- the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the terminal 500.
- the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, by the RF circuit 110, or outputted to the memory 120 for further processing.
- the audio circuit 160 may also include an earbud jack to provide communication between the peripheral earphone and the terminal 500.
- the terminal 500 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170, and provides the user with wireless or wired broadband Internet access.
- the transmission module 170 is shown in Fig. 5, it can be understood that it does not belong to the essential configuration of the terminal 500, and can be omitted as needed within the scope of not changing the essence of the invention.
- the processor 180 is the control center of the terminal 500, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 500 are performed to perform overall monitoring of the mobile phone.
- the processor 180 may include one or more processing cores.
- the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 180.
- the terminal 500 also includes a power source 190 (such as a battery) for powering various components.
- a power source 190 such as a battery
- the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
- the terminal 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
- the display unit of the terminal is a touch screen display
- the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more
- the execution of one or more programs includes instructions for performing the following operations:
- the data buffer layer receives an operation request of a listener of the long relationship chain user of the client, and pushes the operation request to the service layer;
- the service layer receives the operation request that is sent by the data buffer layer, and caches the operation request according to a minimum storage unit, where the minimum storage unit is divided by the long relationship chain user.
- the service layer finds a designated database belonging to the long relationship chain user according to a preset routing configuration, and specifies the specified according to the operation request.
- the database is operating.
- the memory of the terminal further includes an instruction for performing the following operations. :
- the data buffer layer calculates a minimum operating unit of the long relationship chain user, routing the operation request to the minimum operating unit of the business layer.
- the memory of the terminal further includes an instruction for performing the following operations:
- the warehousing process in the business layer reads the minimum operation unit to obtain the operation request in the minimum operation unit, and calculates a minimum storage unit to which the operation request belongs, and caches the operation request to In the minimum storage unit.
- the memory of the terminal further includes an instruction for performing the following operations:
- the receiving process adds one to the synchronization sequence number of the minimum operation unit, where the synchronization sequence number is used to identify the synchronization progress of the receiving process and the data buffer layer.
- the memory of the terminal further includes an instruction for performing the following operations:
- the warehousing process reads a synchronization sequence number of the minimum operation unit in the receiving process, and determines the minimum operation Whether the synchronization sequence number of the unit is greater than the read sequence number of the minimum operation unit saved locally, and if yes, reading the operation request in the minimum operation unit, where the read sequence number is used to identify the entry The progress of the synchronization of the library process with the receiving process.
- the data buffer layer receives an operation request of the listener of the long relationship chain user of the client, and pushes the operation request to the service layer;
- the service layer receives the data buffer layer The operation request is pushed, and the operation request is cached according to a minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds the long relationship according to the preset routing configuration. Chaining the specified database of the user and operating the specified database in accordance with the operation request.
- the service layer can store the operation request according to the minimum storage unit, thereby implementing the batch operation on the underlying database. It reduces the operational burden of data and improves the processing speed of the listener information of long relationship chains.
- the operation request is saved to a different database, so that the user's audience information is separated from the database level, further reducing the operational burden of the server and improving the performance of the system.
- the buffering is also performed in units of the minimum operating unit, thereby further reducing the operational burden of the service layer and improving the processing speed of the data.
- the embodiment of the present invention provides a computer readable storage medium, which may be a computer readable storage medium included in the memory in the above embodiment, or may exist separately and not assembled into the terminal.
- Computer readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of data processing, the method comprising:
- the data buffer layer receives an operation request of a listener of the long relationship chain user of the client, and pushes the operation request to the service layer;
- the service layer receives the operation request that is sent by the data buffer layer, and caches the operation request according to a minimum storage unit, where the minimum storage unit is divided by the long relationship chain user.
- the service layer finds a designated database belonging to the long relationship chain user according to a preset routing configuration, and specifies the specified according to the operation request.
- the database is operating.
- the pushing the operation request to the service layer includes:
- the data buffer layer calculates a minimum operation unit of the long relationship chain user, and routes the operation request to the service In the minimum operating unit of the layer.
- the service layer receives the operation request pushed by the data buffer layer, and performs the operation request according to a minimum storage unit.
- Cache including:
- the warehousing process in the business layer reads the minimum operation unit to obtain the operation request in the minimum operation unit, and calculates a minimum storage unit to which the operation request belongs, and caches the operation request to In the minimum storage unit.
- the receiving process in the service layer receives the operation request pushed by the data buffer layer, and the operation request is After the log is cached in the minimum operating unit, it also includes:
- the receiving process adds one to the synchronization sequence number of the minimum operation unit, where the synchronization sequence number is used to identify the synchronization progress of the receiving process and the data buffer layer.
- the warehousing process in the service layer reads the minimum operation unit to obtain the foregoing in the minimum operation unit
- the operation request includes: the warehousing process reads a synchronization sequence number of the minimum operation unit in the receiving process, and determines whether a synchronization sequence number of the minimum operation unit is greater than a locally read sequence number of the minimum operation unit, If yes, the operation request in the minimum operation unit is read, wherein the read sequence number is used to identify a synchronization progress of the warehousing process and the receiving process.
- the beneficial effect of the embodiment is: the data buffer layer receives an operation request of the listener of the long relationship chain user of the client, and pushes the operation request to the service layer; the service layer receives the operation request pushed by the data buffer layer
- the operation request is cached according to a minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds a designated user belonging to the long relationship chain according to a preset route configuration. a database, and operating on the specified database in accordance with the operation request.
- the service layer can store the operation request according to the minimum storage unit, thereby implementing the batch operation on the underlying database. It reduces the operational burden of data and improves the processing speed of the listener information of long relationship chains.
- the operation request is saved to a different database, so that the user's audience is separated from the database level, further reducing the operational burden of the server and improving the performance of the system.
- the buffering is also performed in units of the minimum operating unit, thereby further reducing the operational burden of the service layer and improving the processing speed of the data.
- a graphical user interface is provided in an embodiment of the present invention, where the graphical user interface is used on a terminal, where the terminal includes a touch screen display, a memory, and one or more processors for executing one or more programs;
- the graphical user interface includes:
- the service layer receives the operation request that is sent by the data buffer layer, and caches the operation request according to a minimum storage unit, where the minimum storage unit is divided by the long relationship chain user.
- the service layer finds a designated database belonging to the long relationship chain user according to a preset routing configuration, and specifies the specified according to the operation request.
- the database is operating.
- the beneficial effect of the embodiment is: the data buffer layer receives an operation request of the listener of the long relationship chain user of the client, and pushes the operation request to the service layer; the service layer receives the operation request pushed by the data buffer layer
- the operation request is cached according to a minimum storage unit; when the data cached in the minimum storage unit reaches a preset condition, the service layer finds a designated user belonging to the long relationship chain according to a preset route configuration. a database, and operating on the specified database in accordance with the operation request.
- the service layer can store the operation request according to the minimum storage unit, thereby implementing the batch operation on the underlying database. It reduces the operational burden of data and improves the processing speed of the listener information of long relationship chains.
- the operation request is saved to a different database, so that the user's audience information is separated from the database level, further reducing the operation load of the server and improving the performance of the system.
- the buffering is also performed in units of the minimum operating unit, thereby further reducing the operational burden of the service layer and improving the processing speed of the data.
- the related hardware may be instructed by a program, and the program may be stored in a computer readable storage medium, and the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/439,580 US9357027B2 (en) | 2012-10-29 | 2013-10-28 | Data processing method and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210420674.8A CN103793386B (zh) | 2012-10-29 | 2012-10-29 | 数据处理的方法和系统 |
CN201210420674.8 | 2012-10-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014067437A1 true WO2014067437A1 (zh) | 2014-05-08 |
Family
ID=50626484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/086090 WO2014067437A1 (zh) | 2012-10-29 | 2013-10-28 | 数据处理的方法和系统 |
Country Status (3)
Country | Link |
---|---|
US (1) | US9357027B2 (zh) |
CN (1) | CN103793386B (zh) |
WO (1) | WO2014067437A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9864785B2 (en) * | 2016-10-24 | 2018-01-09 | Interntaional Business Machines Corporation | Processing a query via a lambda application |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030218A (zh) * | 2007-03-23 | 2007-09-05 | 北京中星微电子有限公司 | 一种虚拟文件管理单元以及文件管理的系统和方法 |
WO2012085921A1 (en) * | 2010-12-20 | 2012-06-28 | Hewlett-Packard Development Company L.P. | Method of provisioning additional storage to computer applications |
CN102650931A (zh) * | 2012-04-01 | 2012-08-29 | 华为技术有限公司 | 一种写入数据的方法及系统 |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7143021B1 (en) * | 2000-10-03 | 2006-11-28 | Cadence Design Systems, Inc. | Systems and methods for efficiently simulating analog behavior of designs having hierarchical structure |
US8788492B2 (en) * | 2004-03-15 | 2014-07-22 | Yahoo!, Inc. | Search system and methods with integration of user annotations from a trust network |
US20080005064A1 (en) * | 2005-06-28 | 2008-01-03 | Yahoo! Inc. | Apparatus and method for content annotation and conditional annotation retrieval in a search context |
US7761436B2 (en) * | 2006-01-03 | 2010-07-20 | Yahoo! Inc. | Apparatus and method for controlling content access based on shared annotations for annotated users in a folksonomy scheme |
US20080215348A1 (en) * | 2007-03-02 | 2008-09-04 | Marc Guldimann | System and methods for advertisement and event promotion |
CA2761700C (en) * | 2009-07-24 | 2014-12-02 | Research In Motion Limited | Method and apparatus for a touch-sensitive display |
US20130211944A1 (en) * | 2010-11-01 | 2013-08-15 | Zulfiqar N. Momin | System, method and computer program product for sharing a product/service and its associated purchase price between customers |
US9495711B2 (en) * | 2010-11-19 | 2016-11-15 | Microsoft Technology Licensing, Llc | Invite abuse prevention |
US20130035982A1 (en) * | 2011-08-04 | 2013-02-07 | Pitney Bowes Inc. | Method and system for creating targeted advertising utilizing social media activity |
US9171326B2 (en) * | 2012-09-26 | 2015-10-27 | Wal-Mart Stores, Inc. | System and method for making gift recommendations using social media data |
-
2012
- 2012-10-29 CN CN201210420674.8A patent/CN103793386B/zh active Active
-
2013
- 2013-10-28 US US14/439,580 patent/US9357027B2/en active Active
- 2013-10-28 WO PCT/CN2013/086090 patent/WO2014067437A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030218A (zh) * | 2007-03-23 | 2007-09-05 | 北京中星微电子有限公司 | 一种虚拟文件管理单元以及文件管理的系统和方法 |
WO2012085921A1 (en) * | 2010-12-20 | 2012-06-28 | Hewlett-Packard Development Company L.P. | Method of provisioning additional storage to computer applications |
CN102650931A (zh) * | 2012-04-01 | 2012-08-29 | 华为技术有限公司 | 一种写入数据的方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN103793386B (zh) | 2017-12-12 |
CN103793386A (zh) | 2014-05-14 |
US9357027B2 (en) | 2016-05-31 |
US20150296036A1 (en) | 2015-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11057376B2 (en) | Method, apparatus, and system for controlling intelligent device, and storage medium | |
WO2015090248A1 (zh) | 服务器的过载保护方法及装置 | |
WO2018177333A1 (zh) | 镜像分发方法、镜像获取方法及装置 | |
WO2016150270A1 (zh) | 群组会话消息处理方法和装置 | |
WO2017088377A1 (zh) | 消息撤回方法和装置 | |
WO2014032559A1 (zh) | 下载文件的方法和装置 | |
CN104980455B (zh) | 一种基于云存储的多终端数据同步方法、装置和系统 | |
WO2016116041A1 (zh) | 一种信息推荐的管理方法、装置和系统 | |
JP6430527B2 (ja) | データ処理方法、データ処理システムおよびサーバ | |
WO2017096909A1 (zh) | 建立数据连接的方法及装置 | |
WO2017215661A1 (zh) | 一种场景音效的控制方法、及电子设备 | |
CN106708554A (zh) | 程序运行方法及装置 | |
TW201502986A (zh) | 使用於瀏覽器網頁的應用程式訊息通知顯示方法、相關設備與系統 | |
WO2014166263A1 (en) | Communication method, system, server and client device for user-interactive system | |
CN104660769B (zh) | 一种添加联系人信息的方法、装置和系统 | |
WO2014166266A1 (en) | File scanning method and system, client and server | |
WO2015081880A1 (zh) | 集群业务属性处理的方法、装置和系统 | |
CN108270839B (zh) | 访问频率控制系统及方法 | |
WO2018161788A1 (zh) | 多媒体数据共享方法及装置 | |
CN106254924A (zh) | 一种多媒体数据的播放方法、系统及相关设备 | |
WO2015024393A1 (zh) | 发送短信的方法、装置及终端 | |
CN105025064B (zh) | 下载文件的方法、装置及系统 | |
WO2014026581A1 (zh) | 信息管理的方法、客户端及移动终端 | |
US20140344423A1 (en) | Method, apparatus and system for switching function mode | |
WO2017076279A1 (zh) | 一种更新路由表项的方法、装置及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13851123 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14439580 Country of ref document: US |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.09.2015) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13851123 Country of ref document: EP Kind code of ref document: A1 |