V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
ethancheung1990
V2EX  ›  iDev

求 CoreData 的替代框架

  •  1
     
  •   ethancheung1990 · 2017-03-25 19:23:26 +08:00 · 4302 次点击
    这是一个创建于 2587 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不知道大家有没有好用的类似于 CoreData 的持久化框架,性能和可靠性都高一点的。谢谢!

    20 条回复    2017-04-18 18:26:50 +08:00
    nieyujiang
        1
    nieyujiang  
       2017-03-25 19:52:16 +08:00
    fmdb
    ipconfiger
        2
    ipconfiger  
       2017-03-25 20:12:29 +08:00
    realm 啦
    其实 CoreData 还是不错哒, 试试 https://github.com/ipconfiger/asyncCoreDataWrapper 可以让 CoreData 用起来更简单
    wohenyingyu02
        3
    wohenyingyu02  
       2017-03-25 20:28:08 +08:00
    sqlite ?
    chipmuck
        4
    chipmuck  
       2017-03-25 20:37:10 +08:00
    首推 Realm
    zenghaojim33
        5
    zenghaojim33  
       2017-03-26 00:14:00 +08:00
    Realm ,有若干个杀手级特性
    oh8
        6
    oh8  
       2017-03-26 01:06:04 +08:00
    fmdb 拉,苹果的 news 应用都用他不用自家的 coredata
    wddwycc
        7
    wddwycc  
       2017-03-26 08:17:51 +08:00 via iPhone
    sqlite.swift
    Elven
        8
    Elven  
       2017-03-26 10:46:34 +08:00 via Android
    推荐 Realm,还能用在 React Native 上
    fghfjujiber
        9
    fghfjujiber  
       2017-03-27 09:43:32 +08:00
    fghfjujiber
        10
    fghfjujiber  
       2017-03-27 09:43:50 +08:00
    Realm 会不会很大啊
    Elven
        11
    Elven  
       2017-03-28 11:24:16 +08:00 via Android   ❤️ 1
    @fghfjujiber 大概 2,3mb 的样子
    jialiangnull
        12
    jialiangnull  
       2017-04-11 14:24:33 +08:00
    wql_sqlite 我觉得还不错
    jialiangnull
        13
    jialiangnull  
       2017-04-11 14:25:30 +08:00
    racechao
        14
    racechao  
       2017-04-12 10:36:20 +08:00
    Realm 稳
    ethancheung1990
        15
    ethancheung1990  
    OP
       2017-04-12 13:09:02 +08:00
    ethancheung1990
        16
    ethancheung1990  
    OP
       2017-04-12 13:10:08 +08:00
    求问 刚开始看 Realm 的文档 有一句不知道怎么理解 能不能帮忙解释一下啊 谢谢
    “ RLMObject 官方建议不要加上 Objective-C 的 property attributes(如 nonatomic, atomic, strong, copy, weak 等等)假如设置了,这些 attributes 会一直生效直到 RLMObject 被写入 realm 数据库。”
    racechao
        17
    racechao  
       2017-04-12 15:50:43 +08:00
    @ethancheung1990

    >Note that Realm ignores Objective ‑ C property attributes like nonatomic, atomic, strong, copy, weak, etc. This is >done because Realm has its own optimized storage semantics under the hood. So to avoid being misleading, we >recommend writing models without any property attributes at all.

    Realm 在自己的引擎内部有很好的语义解释系统,所以没必要再去修饰,文档也说了建议不要写,为了避免误解。
    racechao
        18
    racechao  
       2017-04-12 15:54:05 +08:00
    当然要是你写了也没事,只要修饰不用错就可以。当然别人都建议你不写了,内部已经有一套机制了,所以就没必要了嘛。
    ethancheung1990
        19
    ethancheung1990  
    OP
       2017-04-12 17:17:42 +08:00
    @racechao 谢谢!
    Wongzigii
        20
    Wongzigii  
       2017-04-18 18:26:50 +08:00
    试试 MagicalRecord ,其实就是在 CoreData 外面包了一层语法糖
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1084 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:08 · PVG 03:08 · LAX 12:08 · JFK 15:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.