Currently, two big data storage solutions are available: Row Storage and column storage. There is a lot of competition in the industry for the two storage solutions. The focus is on who can process massive data more effectively an
Data storage in Android (2): android Storage
In the previous article, we introduced how to use SharedPreferences.
Today, we will continue to introduce another way to store data: using internal storage and external storage.
E
The sequential and chained storage of linear tables has different time complexity in storing and deleting data.
Typical examples of sequential storage are arrays, and a typical example of chained storage is a single linked list. As we all know, when the reading data is more
context.mode_private: Is the default mode of operation, which means that the file is private data and can only be accessed by the app itself , in which the contents of the original file are overwritten by the written content . If you want to append the newly written content to the original file. You can use Context.mode_appendcontext.mode_append: The mode checks whether the file exists, appends content to the file, or creates a new file.context.mode_w
In the actual development, the storage data is mainly using SQLite. In practice, we mainly use the following three kinds of storage methods.(1) using plist storage to simply NSString, Nsarray, nsdictionary, etc.(2) Using preference storage, similar to the above, the
Backup | Data storage Backup technology generally includes hardware technology and software technology, hardware technology is mainly tape drive technology, software technology is mainly general-purpose and special backup software technology.
Tape Drive Technology:
Both hard disk technology and optical technology are not suitable for data
localstorage– data storage with no time limitsessionstorage– data storage for a session
——————Localstorage methodThe data stored by the Localstorage method has no time limit. Data is still available after the next day, the second
Bit
It is an IP address of a single position in the 20 h. 2fh Area of the internal data storage space, or a 8051-bit address that can address SFr.
CodeIs a Code address between 0000 h .. 0 ffffh.
Data
It is a data storage address between 0 and 127, or a special function regi
File storage (internal storage)once the program is installed in the device, the data/data/package name/That is the internal storage space, external confidentiality.The context provides 2 ways to open an input, output stream
FileInputStream openfileinput (String name)
MYSQL internal data storage has not been well documented. I am free to study it. [@ more @] 1. analyze row data with single fields: 1.1 create test data droptableifexistsheyf_5; createtableheyf_5 (namevarchar (50) typemyisamdefadefacharsetlatin1; insertintoheyf_5value
MYSQL internal
Learn android from scratch (Data Storage (2) Internal Storage. 36 .)
CallopenFileOutput()With the name of the file and the operating mode. This returnsFileOutputStream. PassOpenFileOutput () creates a FileoutputStream object
Write to the filewrite(). Create a Write object and perform data read/Write operations.
Clo
Induction:LinearContinuous storage of "arrays"Advantage: Fast access (element can be directly located)Cons: Insertion of deleted elements is slow (because you want to move other elements), space is usually limitedDiscrete storage "linked list"Advantage: No space limit, insert delete element quicklyCons: Access speed is slow (to one traversal, one for one)Application of linear structure:1. Stack2. QueuesNonl
CookiesCookies, sometimes in their plural form, are the data (usually encrypted) stored on the user's local terminal by certain websites in order to identify the user and track the session. The next step is to talk about some of the advantages and disadvantages of cookies, cookie although the persistent preservation of client data provides the convenience of sharing the burden of server
Android data storage methods and android Storage
As a complete application, data storage operations are essential. Therefore, the Android system provides four data storage
There are five ways to store data on the Android platform:1. File storage data;2. Use sharedpreferences to store data;3. SQLite database stores data;4. Use contentprovider to store data;5. network
Label:I. Constraints on tables 1. Unique constraints 1-field content (Multi-field content merge) Unique, cannot have duplicate rows 2-the same table can have multiple unique constraints 2. Check constraints 1-Ensure that the requirements are met before saving 2-Validation of the range of values for field data 3. Maintaining integrity between tables 3. FOREIGN KEY constraints 1-The primary key is associated to a field in another table, which is the for
content is controlled by the Cache Control information, including related freshness detection.
In actual applications, Application Cache is prone to problems. Typical examples are: how to change the manifest file to achieve resource update, and may cause repeated Cache (the time for manifest Parsing is different ). When deciding to use Application Cache, you must read this article carefully:
The API provided by Application Cache is very simple. It does not rely on JS to implement the Cache,
RW Size (rw data + ZI data) 104 (0.10kB)Total ROM Size (Code + RO data + RW data) 2988 (2.92kB)
============================================================================== Total ROM Size (Code + RO data + RW data) This writes
Persistent data storage and unity storage in unity
Unity provides the PlayerPrefs class for storing game data to a computer's hard drive. This class has 10 functions availableClass Functions
SetIntSets the value of the preference identified by key.Set the parameter value determined by the key.
GetIntReturns the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.