• judeng's avatar
    improve performance for scan command when matching data type (#12395) · 7f0a7f0a
    judeng authored
    Move the TYPE filtering to the scan callback so that avoided the
    `lookupKey` operation. This is the follow-up to #12209 . In this thread
    we introduced two breaking changes:
    1. we will not attempt to do lazy expire (delete) a key that was
    filtered by not matching the TYPE (like we already do for MATCH
    pattern).
    2. when the specified key TYPE filter is an unknown type, server will
    reply a error immediately instead of doing a full scan that comes back
    empty handed.
    7f0a7f0a
db.c 102 KB