推荐工具
› RoboMongo
推荐书目
› 50 Tips and Tricks for MongoDB Developers
Related Blogs
› Snail in a Turtleneck
watert
V2EX  ›  MongoDB

无法理解mongoose画蛇添足地添加schema

  •  
  •   watert · Mar 19, 2013 · 6095 views
    This topic created in 4979 days ago, the information mentioned may be changed or developed.
    mongodb的一个巨大优势就是schema-less,mongoose这就是扼杀了这个优势
    ORM也不见得就一定要schema吧?
    3 replies  •  1970-01-01 08:00:00 +08:00
    chloerei
    chloerei
    Mar 19, 2013❤️1
    1
    这其实是在给应用设定 schema,不然应用中很多地方都要写判断代码

    if (article.title) {
    // parse title
    }

    schema-less 目前只发现数据采集的场合是会用到的。
    heroicYang
    heroicYang
    Mar 20, 2013
    2
    schema-less is not no-schema...
    leafduo
    leafduo
    Mar 20, 2013
    3
    schemaless 主要是可以随便变模式,真是应用里没模式怎么搞?模型用什么来代表?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3137 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 04:33 · PVG 12:33 · LAX 20:33 · JFK 23:33
    ♥ Do have faith in what you're doing.