Skip to content

Commit

Permalink
⚗️ (stop): 优化查询
Browse files Browse the repository at this point in the history
  • Loading branch information
czy-29 committed Jan 12, 2025
1 parent cb8f6f6 commit c5ac9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-surreal/src/stop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl<C: Connection> Stop<C> {
}

// last_id: 01JH8CBYAKFSRK8Y9HY02QVTDS
// SELECT * FROM (SELECT *, session_id[*], client_id[*] FROM type::thing($table_name, ..=$last_id) ORDER BY id DESC LIMIT $n) ORDER BY id
// SELECT * FROM (SELECT *, client_id[*] FROM type::thing($table_name, ..=$last_id) ORDER BY id DESC LIMIT $n) ORDER BY id
let query = "SELECT * FROM (SELECT * FROM type::thing($table_name, ..) ORDER BY id DESC LIMIT $n) ORDER BY id";
let msgs: Vec<Msg> = self
.db
Expand Down

0 comments on commit c5ac9f6

Please sign in to comment.