Skip to content

Commit

Permalink
Merge pull request #585 from jbiblio/element-instance-indices
Browse files Browse the repository at this point in the history
Add indices to ElementIndices to speed up queries
  • Loading branch information
nitram509 authored Nov 9, 2023
2 parents e2bbd63 + eb1ec7d commit d2ca124
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

@Entity(name = "ELEMENT_INSTANCE")
@Table(indexes = {
// performance reason, because we use it in the
// {@link io.zeebe.monitor.repository.ElementInstanceRepository#findByProcessInstanceKey(long)}
@Index(name = "element_instance_processInstanceKeyIndex", columnList = "PROCESS_INSTANCE_KEY_"),
@Index(name = "element_instance_processDefinitionKeyIndex", columnList = "PROCESS_DEFINITION_KEY_"),
@Index(name = "element_instance_intentIndex", columnList = "INTENT_"),
@Index(name = "element_instance_bpmnElementTypeIndex", columnList = "BPMN_ELEMENT_TYPE_"),
})
public class ElementInstanceEntity {

Expand Down

0 comments on commit d2ca124

Please sign in to comment.