fixed an n+1 bug with the query engine, and made it significantly more efficient

This commit is contained in:
2026-04-23 08:11:39 -05:00
parent 510e4008cd
commit 167b2ff665
3 changed files with 76 additions and 21 deletions
+10
View File
@@ -32,6 +32,16 @@ func (t *Tracker) Untrack(c *Client) {
delete(t.clients, c.ID)
}
func (t *Tracker) SetAuthID(clientID string, authID string) {
t.mu.Lock()
defer t.mu.Unlock()
t.clients[clientID].SetAuthID(authID)
}
func (t *Tracker) GetAuthID(clientID string) string {
return t.clients[clientID].GetAuthID()
}
func (t *Tracker) SubscribeToQuery(clientID string, query string, params string) {
t.mu.Lock()
defer t.mu.Unlock()