简体   繁体   English

我应该在 ios 的日记应用程序中使用什么类型的数据库?

[英]What type of database should I use in diary app in ios?

It is also the first time to develop, I want to make a diary app, but I don't know which database to use because I don't have basic knowledge of the database.也是第一次开发,想做一个日记app,但是不知道用哪个数据库,因为没有数据库基础知识。 When I click on the calendar, I would like to post on that date And I also need a picture that needs to be imported.当我点击日历时,我想在那个日期发布并且我还需要一张需要导入的图片。

I can look for it even if I post this.即使我发布这个,我也可以寻找它。 I think it would be the fastest to ask.我想这将是最快的提问。 Thank you for reading my POST and hope everyone who reads has a nice day感谢您阅读我的帖子,希望每个阅读的人都有美好的一天

Quick Answer: I would recommend persisting data on the users device instead of a cloud based database by using Core Data for the following reasons:快速回答:我建议使用 Core Data 在用户设备上而不是基于云的数据库上保存数据,原因如下:

  1. The content may be private or sensitive in nature, keeping it on the device is safer内容可能是私密的或敏感的,将其保存在设备上更安全
  2. Media attachments can become costly at scale, saving to device removes that burden from the developer媒体附件在规模上可能会变得昂贵,保存到设备可以减轻开发人员的负担

some cons of this route include the following:这条路线的一些缺点包括:

  1. Potential loss of Analytics by not using a cloud database such as Google Firebase不使用云数据库(例如 Google Firebase)可能会丢失分析
  2. Cloud storage can be backed up in case the user loses their device (assuming they are not backed up via iCloud)可以备份云存储以防用户丢失设备(假设他们没有通过 iCloud 备份)

For a more thorough answer I recommend you provide more in terms of your objectives and audience.为了获得更全面的答案,我建议您提供更多关于您的目标和受众的信息。

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

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