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

推荐订阅源

D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tor Project blog
K
Kaspersky official blog
S
Security Affairs
Hacker News: Ask HN
Hacker News: Ask HN
L
LINUX DO - 最新话题
S
Securelist
Google DeepMind News
Google DeepMind News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
The Last Watchdog
The Last Watchdog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
小众软件
小众软件
Vercel News
Vercel News
博客园 - 叶小钗
量子位
Help Net Security
Help Net Security
C
Cybersecurity and Infrastructure Security Agency CISA
P
Privacy & Cybersecurity Law Blog
T
The Exploit Database - CXSecurity.com
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
美团技术团队
AI
AI
V
V2EX
T
Troy Hunt's Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
D
DataBreaches.Net
H
Help Net Security
V2EX - 技术
V2EX - 技术
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
T
Threatpost
J
Java Code Geeks
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Webroot Blog
Webroot Blog
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
I
InfoQ
P
Proofpoint News Feed
Spread Privacy
Spread Privacy
Security Latest
Security Latest

RethinkDB

RethinkDB 关门 - V2EX RethinkDB 倒闭了 - V2EX Dermail alpha v1, Built with RethinkDB and NodeJS - V2EX 用来取代单表可能达到数亿记录的 MySQL 场景, RethinkDB 会是一个好选择么? - V2EX RethinkDB 2.0 终于出来了 - V2EX
有人在实际项目中用过 RethinkDB 么,是否有什么坑可以分享? - V2EX
Livid · 2015-04-21 · via RethinkDB
love

1

love      2015 年 4 月 21 日

我刚用来开发一个应用,坑还没碰到, 不过rethinkdb的这个特点和别的db不同,就是没有智能优化器,不指定索引的时候绝对不会用索引。
也就是说它的眼花缭乱的filter功能全都不能用索引,只有get / get_all / between / order_by 能用索引。

issue里开发人员说这是个feature,我也喜欢这个这样,因为程序里哪些查询是高效的哪些会有性能问题一目了然了,不象mysql总是在线上跑才发现要加索引。

所以呢有一个操作会比较反直觉,就如果有组合索引 A+B+C时,需要A=? and B=? 并按C排序时需要用between接order_by并指定同一索引才能完全利用这个组合索引(issue里有说明,文档里好象没有)。