Posted inDatabase
Tối ưu Compound Index trong MongoDB với quy tắc ESR: Tránh lỗi Sort exceeded memory limit
Áp dụng quy tắc ESR (Equality, Sort, Range) để thiết kế Compound Index chuẩn xác trong MongoDB. Loại bỏ In-Memory Sort và tối ưu query từ 1.8s xuống 4ms.
