Skip to content

Commit

Permalink
Merge branch 'feat/DEX-2325/update-index' into 'master'
Browse files Browse the repository at this point in the history
[DEX-2325] feat: add index

Closes DEX-2325

See merge request nstmrt/rubygems/outbox!101
  • Loading branch information
Arlantir committed Sep 13, 2024
2 parents bb1660d + 5750cbe commit e6a91d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

## [6.9.0] - 2024-09-13

### Added

- Replaced index `add_index :#{table_name}, [:status, :bucket, :errors_count]` to `add_index :#{table_name}, [:status, :id, :bucket], algorithm: :concurrently, include: [:errors_count]`

## [6.8.0] - 2024-09-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ create_table :my_outbox_items do |t|
end

add_index :my_outbox_items, :uuid, unique: true
add_index :my_outbox_items, [:status, :bucket, :errors_count]
add_index :my_outbox_items, [:status, :id, :bucket], algorithm: :concurrently, include: [:errors_count]
add_index :my_outbox_items, [:event_name, :event_key, :id]
add_index :my_outbox_items, :created_at
```
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/helpers/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def patch_migration_with_template_data(migration_filepath, table_name)
end
add_index :#{table_name}, :uuid, unique: true
add_index :#{table_name}, [:status, :bucket, :errors_count]
add_index :#{table_name}, [:status, :id, :bucket], algorithm: :concurrently, include: [:errors_count]
add_index :#{table_name}, [:event_key, :id]
add_index :#{table_name}, :created_at
RUBY
Expand Down
2 changes: 1 addition & 1 deletion lib/sbmt/outbox/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Sbmt
module Outbox
VERSION = "6.8.0"
VERSION = "6.9.0"
end
end

0 comments on commit e6a91d7

Please sign in to comment.