-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Vấn đề
Tăng performance của database dev:
- https://docs.mongodb.com/v3.0/core/wiredtiger/
Lý do sao engine mới của mongodb nhanh hơn, nguy cơ... - https://yahooeng.tumblr.com/post/104861108931/mdbm-high-speed-database
- Tại sao một số yếu tố bên FreeBSD tại sao nâng performance db được
https://kib.kiev.ua/kib/pgsql_perf.pdf
http://www.postgresql.org/message-id/sig.030123e089.53EA43F6.2040108@chittenden.org
WiredTiger
- Better write performance
- Document level concurrency
- Compression
- Snapshots and checkpoints system
Cơ chế:
Khi phát sinh một transaction, WiredTiger tạo snapshot lưu trữ tạm thời dữ liệu thao tác trên Memory, không ghi ngay xuống Disk.
Theo mặc định sau mỗi 60 giây hoặc dữ liệu có kích thước 2GB thì dữ liệu snapshot được ghi xuống Disk
Với cơ chế làm việc như vậy sẽ có rủi ro bị mất dữ liệu nếu hard shutdown db do dữ liệu vẫn nằm trên Memory và chưa được ghi xuống Disk.
- Performance
Tham khảo thêm:
- [1] http://www.wiredtiger.com/
- [2] http://source.wiredtiger.com/2.6.0/architecture.html
- [3] http://stackoverflow.com/questions/37985134/how-to-choose-from-mmapv1-wiredtiger-or-in-memory-storageengine-for-mongodb
- [4] https://dba.stackexchange.com/questions/121160/mongodb-mmapv1-vs-wiredtiger-storage-engines
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels


