fix: Allow passing timestamp
This commit is contained in:
parent
8e462fedc1
commit
3509c556a1
5 changed files with 40 additions and 3 deletions
|
|
@ -56,8 +56,6 @@ func (s *Server) snapshotHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// Optimized query using window function (requires SQLite 3.25+) or standard group by max
|
||||
// Using correlated subquery which is standard and works well with the index
|
||||
query := `
|
||||
SELECT drone_id, latitude, longitude, timestamp
|
||||
FROM drone_events t1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue