Skip to content

Tăng performance của database - WiredTiger #1

@phanstasmal

Description

@phanstasmal

Vấn đề

Tăng performance của database dev:


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

screen shot 2017-04-20 at 5 20 43 pm

screen shot 2017-04-20 at 5 20 52 pm

screen shot 2017-04-20 at 5 21 03 pm

Tham khảo thêm:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions