Data storage method and storage device
A storage device and data storage technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of low retrieval efficiency, improve generation efficiency, reduce storage and use costs, and optimize data retrieval performance Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] The embodiment of the present invention provides a kind of data storage method, comprises:
[0058] S1. Read the first field information of the data information to be stored;
[0059] In this embodiment, the acquired data information needs to be reclassified before being stored. Specifically, for example, the acquired data information within a fixed period (for example, 1 hour) needs to be stored in a corresponding storage device. In a preferred embodiment, the storage device may be a magnetic disk, an optical disk, a hard disk, a cloud storage device, a fixed hard disk, and the like.
[0060]The server can read the obtained data information one by one, and grab the first field information in each data information one by one. The first field information may be any field information in the data information, such as: campaign_id, ad_slot_id, strategy_id, request_time, cookie_id or url and other arbitrary field information. In another preferred solution, the first field ...
Embodiment 2
[0077] The data storage method provided by the embodiment of the present invention rearranges the acquired data information and then writes it into the storage device for storage, specifically:
[0078] It is necessary to store the data shown in Table 1 according to the constructed index table, and then perform index retrieval as needed, specifically:
[0079] 201. The data information obtained by the server is shown in Table 1, and the data information at least includes fields such as campaign_id, ad_slot_id, strategy_id, request_time, cookie_id or url:
[0080] Table 1
[0081]
[0082] 202. The server reads the obtained data information one by one. According to the requirement, an index table can be built according to fields such as campaign_id and ad_slot_id. Specifically, the server reads the data with a value of 16331 in the field of campaign_id, and counts the value of the field of campaign_id as 16331 There are four pieces of data information. The server reads the ...
Embodiment 3
[0094] The embodiment of the present invention provides a data storage method, assuming that the data information stored in the storage device (disk) is as shown in Table 3, the server needs to query the data information whose campaign_id value is equal to 16331, and set to read only the data information in the data information The three fields of campaign_id, strategy_id, and request_time are described as examples. Specifically:
[0095] 301. The server sends an instruction to the storage device, requesting to retrieve data whose campaign_id value is equal to 16331, and only reads the three fields of campaign_id, strategy_id and request_time in the data information;
[0096]302. According to the data information retrieved by the request, the server determines that the first field is the campaign_id field, the value of the first field is 16331, and the server searches the index table for the starting position of the data information whose campaign_id value is 16331, as shown in...
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