mysql转换成nosql数据库,将简单的MySQL数据库转换为NoSQL解决方案

I have a very small MySQL Database where the main table is about 300 records and I do add more occasionally. The table stores locations to files and some meta data for video assets that my users have access to. (movie title, path, keyframe name, movie name, file name, etc, etc)

I wanted to move this table to an in-memory solution, but I am confused now-a-days as to that options there are and what is really the fastest, lightest weight, best bang for the buck.

Redis? MongoDB? Something else? Can MySQL run in memory?

I am planning on adding some other databases for different projects a well.

The box this runs on is CentOS 5.6, 16gb RAM and I get about 100 visitors to my site daily.

解决方案

The first thing that you need to ask yourself is,

why do you want to switch to a NoSQL Database?

Answers could be: You need more speed, you want

a replicated and distributed database system,

you need more scalability for used storage

or replication. Or you want to benefit probably

from easier development.

But from 300 records i dont think any, but of the

last would help you.

And i don't think that you really want an "in-memory"

solution. In memory means every data only got written

to ram, and if you close your database, then all your

data is lost. If you really want that then MySQL

have an in-memory Storage engine.

Otherwise all database will cache as lot in-memory

as it can. And 300 records will likely be completly

in your ram also under MySQL. You probably don't get

any speed benefits from switching to a NoSQL database.

If you in general plan to switch to a NoSQL database,

i would prefer MongoDB. It is a mix from NoSQL and

and a RDBMS, because it give you a query language

powerful nearly as SQL. And you can scall it better

than RDBMS. And for me, programming will be a lot

easier against a schema-free database. You can

scale MongoDB up to 1000 servers.

But other NoSQL databases have a lot more scalability.

If you need more Servers, then other databases would

probablby better. But you lose some way to query your

data.

If you generally plan to switch to a NoSQL database

i think MongoDB could handle this. Other NoSQL databases

are probably better for some specific cases and not

for general usage.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值