In the background there is an update stream that runs a series of insert/delete operations (one pair for each query user).
A background process handles insert and delete operations for each query user, one operation per user.