以下理解可能有一些錯誤,見諒
數據庫簡介
mongoDB
NoSql非關係數據庫
操作上:
- 支持正則模糊查詢
- 支持數組查詢操作
- 支持多級嵌套查詢
- 使用aggregate進行層次化的逐級函數查詢
某老外的點評
The reason we choose mongodb was because of its semistructured document support (json) and its capabiiity of searching those documents a a high performance. The solution was to build read oriented enriched documents as a postprocess step after parsing the datasources using mapReduce
博文和圖
博文:mongodb與mysql相比的優缺點
博文:MySQL與MongoDB的操作對比,以及區別
mongoDB VS mySQL(但這張圖感覺有些語法寫的過於複雜了,單獨有些功能獨立出來可以更簡潔)
Aerospike(NoSql非關係數據庫)
Aerospike是一個以分佈式爲核心基礎,可基於行隨機存取內存中索引、數據或SSD存儲中數據的數據庫。
對data steaming流數據,實時動態數據的讀寫有較好的處理能力(比如天氣數據、廣告數據、網頁點擊等)
大致的結構
Namespace:how data stored and managed類似數據庫名
sets:table數據表名
key:記錄records的ID
bin:字段
value:字段對應信息
indexes
policies:how data is stored,how many replicas exist for a record, and when records expire
關於查詢
博文
子查詢、關聯子查詢、非關聯子查詢
SQL中的Filter, join, semi-join等概念的釋義
簡單介紹join,outer-join,semi-join,anti-join的區別