简体   繁体   English

IOS应用程序如何存储海量数据?

[英]How do IOS applications store mass amounts of data?

I know that there is Core Data to store information onto your phone, but what if you are making a social media application such as Instagram. 我知道有Core Data可以将信息存储到您的手机上,但是如果您正在制作社交媒体应用程序(如Instagram),该怎么办。 Where did they manage to store all the information for every user? 他们在哪里设法为每个用户存储所有信息? My main question is when there is a large amount of data to be stored for an application where do application designers store this information? 我的主要问题是,何时有大量数据要存储给应用程序,应用程序设计者应在哪里存储此信息? Thanks 谢谢

The data is stored on their servers in the form of a database. 数据以数据库的形式存储在其服务器上。

http://en.wikipedia.org/wiki/Database http://en.wikipedia.org/wiki/数据库

When the application needs to retrieve some of the user's information such as likes, photos etc... a HTTP Request is made to the server to request the data from the database. 当应用程序需要检索某些用户信息(例如喜欢,照片等)时,会向服务器发出HTTP请求以从数据库请求数据。

http://en.wikipedia.org/wiki/Http_request#Request_message http://en.wikipedia.org/wiki/Http_request#Request_message

PHP and MySQL are standard and low-end languages and databases to use and quite easy to learn and become familiar with. PHP和MySQL是要使用的标准和低端语言和数据库,非常易于学习和熟悉。 More advanced databases tend to use caching layers and other types of layers over the database which prevent data loss, increase read and write speeds, cache the request data, and more. 更高级的数据库倾向于在数据库上使用缓存层和其他类型的层,以防止数据丢失,提高读写速度,缓存请求数据等等。 Furthermore, other companies may chose to use NoSQL databases. 此外,其他公司可能选择使用NoSQL数据库。

There is a comparison between NoSQL and SQL databases here: http://metadata-standards.org/Document-library/Documents-by-number/WG2-N1501-N1550/WG2_N1537_SQL_Standard_and_NoSQL_Databases%202011-05.pdf 这里有NoSQL和SQL数据库之间的比较: http : //metadata-standards.org/Document-library/Documents-by-number/WG2-N1501-N1550/WG2_N1537_SQL_Standard_and_NoSQL_Databases%202011-05.pdf

There is a comparison chart in more detail that can be found here: http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems 有一个比较详细的比较表,可以在这里找到: http : //en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems

One the data has been requested and delivered onto your iOS Device, it can be manipulated to be stored in many different ways. 一种数据已被请求并传递到您的iOS设备上,可以通过多种不同方式进行存储。

Core Data and SQLite are the generally used methods of storing the data as they derive from eachother and it is quite familiar to the majority of SQL databases in terms of the schema. 核心数据和SQLite是存储从彼此派生的数据的常用方法,对于大多数SQL数据库而言,就模式而言,它们是相当熟悉的。

You can use coredata to store the data. 您可以使用coredata来存储数据。 Images can be stored in document folder. 图像可以存储在文档文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM