• binfeng-xin's avatar
    optimize spopwithcount propagation (#12082) · 38e284f1
    binfeng-xin authored
    
    
    A single SPOP with command with count argument resulted in many SPOP
    commands being propagated to the replica.
    This is inefficient because the key name is repeated many times, and is also
    being looked-up many times.
    also it results in high QPS metrics on the replica.
    To solve that, we flush batches of 1024 fields per SPOP command.
    Co-authored-by: default avatarzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>
    38e284f1
t_set.c 61.6 KB