Database OR Array

What is the exact point of using database if I have simple relations (95% queries are dependent on ID). I am storing users and their stats. Why would I use external database if I can have neat constructions like: `db.users[32] = something` Array of 500K users is not that big effort for RAM Pros are: * no problematic asynchronity (instant results) * easy export/import * dealing with database like with a native object LITERALLY ps. and considerations: * Would it be faster or slower to do `collection[3]` than `db.query("select ...` * I am going to store it as a file/s * There is only ONE application/process accessing this data, and the code is executed line by line - please don't elaborate about locking. * Please don't answer with database propositions but why to use external DB over native array/object - I have experience in a few databases - that's not the case. * What I am building is a client/gateway/server(s) game. Gateway deals with all users data, processing, authenticating, writing statistics e.t.c No other part of software needs to access directly to this data/database.
How do you recover if your application crashes? Databases are often overkill, but their ACID properties come in handy in a lot of scenarios.

以上就是Database OR Array的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏