π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Index performance improvement
Smaug#6739e958f5117aec
diff --git a/backend/migrations/000003_add_ip_indx.down.sql b/backend/migrations/000003_add_ip_indx.down.sqlnew file mode 100644index 00000000..6cfbf5c8--- /dev/null+++ b/backend/migrations/000003_add_ip_indx.down.sql@@ -0,0 +1,3 @@+drop index city_ipv4_complete_start_last_idx on city_ipv4_complete;++drop index city_ipv4_complete_start_last_idx_v6 on city_ipv6_complete;diff --git a/backend/migrations/000003_add_ip_indx.up.sql b/backend/migrations/000003_add_ip_indx.up.sqlnew file mode 100644index 00000000..37fec67d--- /dev/null+++ b/backend/migrations/000003_add_ip_indx.up.sql@@ -0,0 +1,5 @@+create index city_ipv4_complete_start_last_idx+ on city_ipv4_complete (network_start_integer, network_last_integer);++create index city_ipv4_complete_start_last_idx_v6+ on city_ipv6_complete (network_start_integer, network_last_integer);\ No newline at end of file