Data renewing method and device
A data update and database technology, applied in the database field, can solve serious file fragmentation, database performance degradation and other problems, and achieve the effect of improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] This embodiment provides a method for updating data, see figure 2 , the method flow provided by this embodiment is specifically as follows:
[0072] 201: Obtain a data update request, where the data update request carries the first data identifier to be updated and the update data corresponding to the first data identifier;
[0073] 202: Query whether the historical data corresponding to the first data identifier is stored in the memory;
[0074] Further, after querying whether the historical data corresponding to the first data identifier is stored in the memory, it also includes:
[0075] If the historical data corresponding to the first data identifier is not stored in the memory, the historical data corresponding to the first data identifier is obtained from the database;
[0076] The historical data corresponding to the first data identifier acquired from the database is stored in the memory, and the step of updating the historical data corresponding to the firs...
Embodiment 2
[0098] Embodiment two
[0099] The embodiment of the present invention provides a method for updating data. For ease of understanding, combined with figure 1 And the content of the first embodiment above, take the application scenario of updating the user’s gold coin as an example, wherein the first data to be updated is identified as user_id, which is ID1 (IDentity, identity identification), and the update data corresponding to ID1 is the latest gold coin of ID1 The number n1 is used to illustrate the method provided by this embodiment in detail. see image 3 , the method flow provided by this embodiment includes:
[0100] 301: Obtain a data update request, where the data update request carries the first data identifier to be updated and the update data corresponding to the first data identifier;
[0101] This embodiment does not limit the specific way of obtaining the data update request, for example, see figure 1 , the data update back-end device 101 obtains a data upda...
Embodiment 3
[0146] The embodiment of the present invention provides a method for updating data. After updating the data in the internal memory and the database through the above-mentioned embodiments, the method provided by the above-mentioned embodiments can also be used as the basis for updating the internal memory and the database. Perform data reading. For ease of understanding, combine figure 1 As well as the content of the first embodiment above, take the application scenario of reading changes in the user's gold coins as an example. Wherein, the first data identifier to be read is user_id, that is, ID2, and the historical data corresponding to ID2 is the number n2 of gold coins of ID2. The method provided in this embodiment is described in detail with an example. see Figure 5 , the method flow provided by this embodiment includes:
[0147] 501: Obtain a data read request, where the data read request carries a second data identifier;
[0148] This embodiment does not limit the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com