V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · Mar 25, 2017 · 5406 views
    This topic created in 3326 days ago, the information mentioned may be changed or developed.

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

    20 replies    2017-04-18 18:26:50 +08:00
    ZeoKarl
        1
    ZeoKarl  
       Mar 25, 2017
    fmdb
    ipconfiger
        2
    ipconfiger  
       Mar 25, 2017
    realm 啦
    其实 CoreData 还是不错哒, 试试 https://github.com/ipconfiger/asyncCoreDataWrapper 可以让 CoreData 用起来更简单
    wohenyingyu02
        3
    wohenyingyu02  
       Mar 25, 2017
    sqlite ?
    chipmuck
        4
    chipmuck  
       Mar 25, 2017
    首推 Realm
    zenghaojim33
        5
    zenghaojim33  
       Mar 26, 2017
    Realm ,有若干个杀手级特性
    oh8
        6
    oh8  
       Mar 26, 2017
    fmdb 拉,苹果的 news 应用都用他不用自家的 coredata
    wddwycc
        7
    wddwycc  
       Mar 26, 2017 via iPhone
    sqlite.swift
    Elven
        8
    Elven  
       Mar 26, 2017 via Android
    推荐 Realm,还能用在 React Native 上
    fghfjujiber
        9
    fghfjujiber  
       Mar 27, 2017
    fghfjujiber
        10
    fghfjujiber  
       Mar 27, 2017
    Realm 会不会很大啊
    Elven
        11
    Elven  
       Mar 28, 2017 via Android   ❤️ 1
    @fghfjujiber 大概 2,3mb 的样子
    jialiangnull
        12
    jialiangnull  
       Apr 11, 2017
    wql_sqlite 我觉得还不错
    jialiangnull
        13
    jialiangnull  
       Apr 11, 2017
    racechao
        14
    racechao  
       Apr 12, 2017
    Realm 稳
    ethancheung1990
        15
    ethancheung1990  
    OP
       Apr 12, 2017
    ethancheung1990
        16
    ethancheung1990  
    OP
       Apr 12, 2017
    求问 刚开始看 Realm 的文档 有一句不知道怎么理解 能不能帮忙解释一下啊 谢谢
    “ RLMObject 官方建议不要加上 Objective-C 的 property attributes(如 nonatomic, atomic, strong, copy, weak 等等)假如设置了,这些 attributes 会一直生效直到 RLMObject 被写入 realm 数据库。”
    racechao
        17
    racechao  
       Apr 12, 2017
    @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  
       Apr 12, 2017
    当然要是你写了也没事,只要修饰不用错就可以。当然别人都建议你不写了,内部已经有一套机制了,所以就没必要了嘛。
    ethancheung1990
        19
    ethancheung1990  
    OP
       Apr 12, 2017
    @racechao 谢谢!
    Wongzigii
        20
    Wongzigii  
       Apr 18, 2017
    试试 MagicalRecord ,其实就是在 CoreData 外面包了一层语法糖
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2524 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 02:36 · PVG 10:36 · LAX 19:36 · JFK 22:36
    ♥ Do have faith in what you're doing.