Skip to content

Commit

Permalink
add column to indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Jun 1, 2024
1 parent d63df47 commit 8c82c3b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
drop index idxf6mchjaiqb65pytncc9l5fiw0;

create index if not exists idxf6mchjaiqb65pytncc9l5fiw0
on forwarding_events (channel_incoming, timestamp);

drop index idx7ki7iilyupdjktdx80pd347au;

create index if not exists idx7ki7iilyupdjktdx80pd347au
on forwarding_events (channel_outgoing, timestamp);
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
drop index idxf6mchjaiqb65pytncc9l5fiw0;

create index if not exists idxf6mchjaiqb65pytncc9l5fiw0
on forwarding_events (channel_incoming, timestamp);

drop index idx7ki7iilyupdjktdx80pd347au;

create index if not exists idx7ki7iilyupdjktdx80pd347au
on forwarding_events (channel_outgoing, timestamp);
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
@Entity
@Table(
name = "forwarding_events",
indexes = {@Index(columnList = "channelIncoming"), @Index(columnList = "channelOutgoing")}
indexes = {@Index(
name = "idxf6mchjaiqb65pytncc9l5fiw0",
columnList = "channelIncoming,timestamp"
), @Index(
name = "idx7ki7iilyupdjktdx80pd347au",
columnList = "channelOutgoing,timestamp"
)}
)
class ForwardingEventJpaDto {
@Id
Expand Down

0 comments on commit 8c82c3b

Please sign in to comment.