Skip to content

Commit bb2370e

Browse files
committed
add todo to help with running on the pi
1 parent 6bd26c2 commit bb2370e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ tokens/
4343
credentials/
4444
auth_credentials.txt
4545
ingest/go/ibt_files/*
46+
ingest/go/handful_ibt_files/*
4647
*.DS_Store
4748
.DS_Store
4849
**/.env.influxdb-admin-password

telemetryService/golang/internal/adapter/questdb/schema.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func NewSchema(host string, port int) *Schema {
1616
return &Schema{host: host, port: port}
1717
}
1818

19+
// todo: add retry logic to stop it falling over on the pi
1920
func (s *Schema) CreateTableHTTP() error {
2021
sql := `
2122
CREATE TABLE IF NOT EXISTS TelemetryTicks (
@@ -64,7 +65,7 @@ func (s *Schema) CreateTableHTTP() error {
6465
lRtempM DOUBLE,
6566
rRtempM DOUBLE,
6667
timestamp TIMESTAMP
67-
) TIMESTAMP(timestamp) PARTITION BY DAY
68+
) TIMESTAMP(timestamp) PARTITION BY DAY
6869
WAL
6970
WITH maxUncommittedRows=1000000
7071
DEDUP UPSERT KEYS(timestamp, session_id);

0 commit comments

Comments
 (0)