mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 14:54:23 +08:00
perf(nodes): paginate node lists and fetch details directly (#54)
* perf(nodes): paginate node lists and fetch details directly * fix(nodes): preserve Unicode search and page transition state * fix(nodes): validate search using the UTF-8 byte limit
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
-- +goose Up
|
||||
CREATE INDEX IF NOT EXISTS idx_of_nodes_type_id ON of_nodes (node_type, id);
|
||||
CREATE INDEX IF NOT EXISTS idx_of_nodes_last_seen_id ON of_nodes (last_seen_at, id);
|
||||
|
||||
-- +goose Down
|
||||
DROP INDEX IF EXISTS idx_of_nodes_last_seen_id;
|
||||
DROP INDEX IF EXISTS idx_of_nodes_type_id;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
-- +goose Up
|
||||
CREATE INDEX IF NOT EXISTS idx_of_nodes_type_id ON of_nodes (node_type, id);
|
||||
CREATE INDEX IF NOT EXISTS idx_of_nodes_last_seen_id ON of_nodes (last_seen_at, id);
|
||||
|
||||
-- +goose Down
|
||||
DROP INDEX IF EXISTS idx_of_nodes_last_seen_id;
|
||||
DROP INDEX IF EXISTS idx_of_nodes_type_id;
|
||||
Reference in New Issue
Block a user