legion-data 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2a768704483d4ece2b9b627f9fda041f3e6370ca1da5dccfce4fd8826ff77f4
4
- data.tar.gz: f5dc70154a82e28c2776b89e1a5a57a32ba62867f0306c19dcdec108748b4787
3
+ metadata.gz: 827684e2e0f37c3fb4921f722f6a1053f0585384cad6e3cf89cf6d75c78329f3
4
+ data.tar.gz: eb9436c4df397ed39e66e4e4cb24d26afc14f0f8e33153d1381c385eddba7a7a
5
5
  SHA512:
6
- metadata.gz: 2bfb162a4dc33c7709b8e266d9d58e649ef854b032a6879aedc7a72218c72b89c52f0652cd223d48076e4838b896aebff39c7e04d8c3db062780b0a251e26f8d
7
- data.tar.gz: 047ad93f9a9f7e090687cce66860b5bb3cc8e1d6f6be73adf3bb3366913113260b86f2c49b16ed5fb6f31777835495cb7392d39df672dc247fb5761fd0541a70
6
+ metadata.gz: d365a0142a850ca4793e684932dcb9dd7321d8518533032c98738d4af155be69202339814a3a3ece4abc309f29411dfe59417aa403f55fa03645dcf84674e5c8
7
+ data.tar.gz: f26235a9b780c805c49119f7602b79a4b7d0d5e2f059403051455b9e5f47d4b6e16e7772b11d197b154f064db4d1bb88332e83cd91e944bff5b47a90f92ab0ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Legion::Data Changelog
2
2
 
3
+ ## [1.5.3] - 2026-03-25
4
+
5
+ ### Added
6
+ - Migration 040: add indexes on tasks table for slow query optimization (`idx_tasks_created`, `idx_tasks_status_func_rel`)
7
+
3
8
  ## [1.5.2] - 2026-03-24
4
9
 
5
10
  ### Fixed
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ Sequel.migration do
4
+ up do
5
+ # tasks.created — used by tasker check_subtask time-range scans
6
+ next unless table_exists?(:tasks)
7
+
8
+ alter_table(:tasks) do
9
+ add_index :created, name: :idx_tasks_created, if_not_exists: true
10
+ add_index %i[status function_id relationship_id], name: :idx_tasks_status_func_rel, if_not_exists: true
11
+ end
12
+ end
13
+
14
+ down do
15
+ next unless table_exists?(:tasks)
16
+
17
+ alter_table(:tasks) do
18
+ drop_index :created, name: :idx_tasks_created, if_exists: true
19
+ drop_index %i[status function_id relationship_id], name: :idx_tasks_status_func_rel, if_exists: true
20
+ end
21
+ end
22
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Data
5
- VERSION = '1.5.2'
5
+ VERSION = '1.5.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
@@ -138,6 +138,7 @@ files:
138
138
  - lib/legion/data/migrations/037_add_apollo_knowledge_domain.rb
139
139
  - lib/legion/data/migrations/038_add_conversations.rb
140
140
  - lib/legion/data/migrations/039_add_audit_archive_manifest.rb
141
+ - lib/legion/data/migrations/040_add_slow_query_indexes.rb
141
142
  - lib/legion/data/model.rb
142
143
  - lib/legion/data/models/apollo_access_log.rb
143
144
  - lib/legion/data/models/apollo_entry.rb