iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
Sunnyyoung
V2EX  ›  iDev

[请教]关于 APP 中存在多个 SQLite 数据库的处理

  •  
  •   Sunnyyoung · May 1, 2015 · 3724 views
    This topic created in 4184 days ago, the information mentioned may be changed or developed.
    关于APP中存在多个SQLite数据库的处理

    一个APP中有一个固定的地区数据之类的SQLite数据库A, 之后该APP持久化数据保存在另一个SQLite数据库B中

    那么问题来了
    1. A数据库一直在APP Bundle中,只有读的权限,只负责读取数据, B数据库自行创建并使用
    2. APP第一次启动的时候把A数据库复制到Document可读写的区域中, 后续持久化数据直接保存到该数据库, 也就是说AB两个数据库合并起来

    以上哪种方案较好,或者说有其他更好的方案,望解答~ : )
    1 replies  •  2015-05-04 10:33:52 +08:00
    BaiYiChaJi
        1
    BaiYiChaJi  
       May 4, 2015   ❤️ 1
    为什么不做成两张Table? 我觉得复制一个数据库不是个好选择,如果数据量比较大的话
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3141 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:59 · PVG 21:59 · LAX 06:59 · JFK 09:59
    ♥ Do have faith in what you're doing.