Skip to content

Commit db1ccef

Browse files
bluestreak01claude
andcommitted
Remove compiled binary and dead code
- Remove accidentally committed tsbs_run_queries_questdb binary - Add tsbs_* pattern to .gitignore to prevent future commits - Remove unused prepared statement cache variables and sync import 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 06aefd6 commit db1ccef

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88

99
# High Dynamic Range (HDR) Histogram files
1010
*.hdr
11+
12+
# Compiled binaries
13+
tsbs_*

cmd/tsbs_run_queries_questdb/main.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"fmt"
1111
"net/url"
1212
"strings"
13-
"sync"
1413
"time"
1514

1615
"github.com/blagojts/viper"
@@ -87,23 +86,13 @@ func main() {
8786
runner.Run(&query.HTTPPool, newProcessor)
8887
}
8988

90-
// preparedStmtCache caches prepared statements by SQL template
91-
var (
92-
preparedStmtCache = make(map[string]string) // sqlTemplate -> stmtName
93-
preparedStmtCacheMu sync.RWMutex
94-
preparedStmtCounter int
95-
preparedStmtCounterMu sync.Mutex
96-
)
97-
9889
type processor struct {
9990
// HTTP mode
10091
httpClient *HTTPClient
10192
httpOpts *HTTPClientDoOptions
102-
// pgx v5 mode - native connection (not database/sql)
93+
// pgx mode
10394
conn *pgx.Conn
10495
ctx context.Context
105-
// Local cache of prepared statement names for this connection
106-
localPreparedStmts map[string]struct{}
10796
}
10897

10998
func newProcessor() query.Processor { return &processor{} }
@@ -126,7 +115,6 @@ func (p *processor) Init(workerNumber int) {
126115
panic(fmt.Sprintf("Unable to connect to QuestDB via pgx: %v", err))
127116
}
128117
p.conn = conn
129-
p.localPreparedStmts = make(map[string]struct{})
130118
}
131119
}
132120

tsbs_run_queries_questdb

-15.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)