Data storage method and apparatus
A data storage and data technology, applied in database indexing, digital data processing, structured data retrieval, etc., can solve problems such as inability to meet database performance requirements, affecting user experience, and unreasonable databases.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] figure 1 A schematic diagram of a data storage process provided by an embodiment of the present invention, the process includes:
[0056] S101: For the current data to be stored, extract a set amount of data from the data to be stored as test data.
[0057] The data storage method provided by the embodiment of the present invention is applied to an electronic device, and the electronic device may be a personal computer, a tablet computer, or a server or the like.
[0058] Specifically, for the current data to be stored, a set amount of data is extracted from the data to be stored as test data. The set number can be 5, 10, etc. For example, the current data to be stored contains 100 pieces Data, the set number is 10, and 10 pieces of data are randomly extracted from the data to be stored as test data. Of course, the set number can also be the proportional value of extracting the data to be stored, for example: the received data to be stored The data contains a total of...
Embodiment 2
[0072] In order to accurately determine the target database for data storage, on the basis of the above embodiments, in the embodiment of the present invention, before determining the test type for the database to be stored according to the preset performance requirements, the Methods also include:
[0073] According to the type of the data to be stored and the data type targeted by each storage database, a database corresponding to the type of the data to be stored is selected as the database to be stored.
[0074] According to the structure of the database, the database includes: key-value storage database, document database, column storage database and graph database. Among them, the key-value storage database mainly uses a hash table, which has a specific key and a pointer to specific data. The advantage of this type of database is that it is simple and easy to deploy. Typical key-value storage databases include: Redis, Memcached, Dynamo, Voldemort, and LevelDB. This type ...
Embodiment 3
[0085] In an embodiment of the present invention, the performance requirements include:
[0086] Prioritize loading performance, storage efficiency, and query performance.
[0087] Loading performance priority refers to the need to give priority to the loading performance of the database when selecting the target database; storage efficiency priority refers to the need to give priority to the storage efficiency of the database when selecting the target database; query performance priority refers to the need to consider the database when selecting the target database query performance.
[0088] In order to understand the corresponding performance requirements of each database to be stored, it is necessary to perform a corresponding test on the database to be tested, because each performance requirement is different, so the test types of the database to be tested are also different. Specifically, in the embodiment of the present invention, the determination of the test type for...
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