惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
L
LINUX DO - 最新话题
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
V
Visual Studio Blog
Attack and Defense Labs
Attack and Defense Labs
O
OpenAI News
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog RSS Feed
H
Help Net Security
量子位
小众软件
小众软件
SecWiki News
SecWiki News
N
Netflix TechBlog - Medium
TaoSecurity Blog
TaoSecurity Blog
美团技术团队
博客园 - 司徒正美
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recent Commits to openclaw:main
Recent Commits to openclaw:main
The Cloudflare Blog
N
News and Events Feed by Topic
C
Cybersecurity and Infrastructure Security Agency CISA
The Last Watchdog
The Last Watchdog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Scott Helme
Scott Helme
T
The Exploit Database - CXSecurity.com
K
Kaspersky official blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
Application and Cybersecurity Blog
Application and Cybersecurity Blog
U
Unit 42
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
Schneier on Security
Schneier on Security
G
Google Developers Blog
Forbes - Security
Forbes - Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Palo Alto Networks Blog
A
Arctic Wolf
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Hacker News
The Hacker News
B
Blog
D
DataBreaches.Net
Simon Willison's Weblog
Simon Willison's Weblog

博客园 - s80895304

win8 framework3.5安装 ChangeCharToTable sql 触发器 mysql 备忘sql ActiveMQ 安装 【转】j2ee 环境搭建 C#原始类型扩展方法—this参数修饰符 消息队列(Message Queue)简介及其使用 IE中同一个url第二次AJAX调用无法触发onreadystatechange事件 Web Service 身份验证 sql 索引 【转】ActiveMQ redis iphone 技巧 10款iOS高效开发必备的Objective-C类库 ASIHTTPRequest jquery 倒计时插件 Queue 队列 写日志简单应用 js keycode
Memcached、MongoDB、Redis和tokyotyrant
s80895304 · 2011-11-25 · via 博客园 - s80895304

MongoDB实际上是一个简化版的MySQL,Mongodb的接口实际上就是类似给SQL做个封装而已。Mongodb只能支持简单的单一查询 语句,不能join,不能子查询。实际性能MySQL和Mongodb差不多,MySQL在高并发的情况下性能不太好,MongoDB会好很多。

Redis读写性能都非常强悍,但是存储数据的容量受限于内存容量。支持Lists类型和Sets类型的数据,2.0增加了更多数据类型。相当于是一个支持持久存储的memcache。

tokyotyrant也是是一个高性能的存储引擎,性能非常出色,每秒可以处理4-5万次读写操作。TT不是内存映射的模式,主要是文件系统存储为主。吃内存少一些。TC除了支持Key-Value存储之外,还支持保存Hashtable数据类型,表结构TokyoTyrantTable,支持列,表,字段,索引,支持query查询。

memcached:设定最大内存占用,最久不使用自动过期,高读写性能,适合最缓存。

redis:拥有memcached的优点,储存数据支持list,适合做队列。是否可以替代memcached我还在考虑。

mongodb:模式自由,容易搭建分布式群集,适合做储存。

MongoDB

添加到服务:mongod.exe --dbpath d:\mongodb\work\db -- logpath d:\mongodb\work\log\log.log --install

启动服务监听:mongod.exe --dbpath d:\mongodb\work\db -- logpath d:\mongodb\work\log\log.log

测试:mongo.exe命令,之后进行操作

注:dppath和logpath必须存在,默认端口为27017

编译redis

启动src / redis - server

客户端连接:src / redis - cli,连接成功后可进行操作

停止服务:src / redis - cli shutdown

以配置文件启动:src / redis - server redis.conf