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
+13 -4
View File
@@ -8,13 +8,22 @@ import (
)
type Client struct {
ID string
Conn *websocket.Conn
Send chan []byte
ID string
Conn *websocket.Conn
Send chan []byte
AuthID string
}
func NewClient(conn *websocket.Conn) *Client {
return &Client{ID: uuid.NewString(), Conn: conn, Send: make(chan []byte, 256)}
return &Client{ID: uuid.NewString(), Conn: conn, Send: make(chan []byte, 256), AuthID: ""}
}
func (c *Client) SetAuthID(authID string) {
c.AuthID = authID
}
func (c *Client) GetAuthID() string {
return c.AuthID
}
func (c *Client) WritePump() {