首頁 > 資料庫 > mysql教程 > Using Redis to Optimize MySQL Queries

Using Redis to Optimize MySQL Queries

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-07 16:36:18
原創
932 人瀏覽過

Using Redis to Optimize MySQL Queries: I somehow missed this post from Flickr team describing their use of (app enforced) capped sorted sets in Redis as sort of a reduced optimized secondary index for MySQL: […] the bottleneck was not in

Using Redis to Optimize MySQL Queries:

I somehow missed this post from Flickr team describing their use of (app enforced) capped sorted sets in Redis as sort of a reduced optimized secondary index for MySQL:

[…] the bottleneck was not in generating the list of photos for your most recently active contact, it was just in finding who your most recently active contact was (specifically if you have thousands or tens of thousands of contacts). What if, instead of fully denormalizing, we just maintain a list of your recently active contacts? That would allow us to optimize the slow query, much like a native MySQL index would; instead of needing to look through a list of 20,000 contacts to see which one has uploaded a photo recently, we only need to look at your most recent 5 or 10 (regardless of your total contacts count)!

This is the first time I’m encountaring this approach where a NoSQL database is used not to provide directly the final data (usually in a denormalized format), but rather to optimize the access to the master of data. Basically this is a metadata layer optimizer. Neat!

Original title and link: Using Redis to Optimize MySQL Queries (NoSQL database?myNoSQL)

Using Redis to Optimize MySQL Queries
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
ubuntu - using cpu段錯誤(核心已轉儲)?
來自於 1970-01-01 08:00:00
0
0
0
資料庫問題
來自於 1970-01-01 08:00:00
0
0
0
Redis Sentinel 從 Slave 讀取寫入 Master?
來自於 1970-01-01 08:00:00
0
0
0
C# 中讀取Redis數據出現髒數據
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板