Skip to content

Commit

Permalink
NGPHASE-3229: Improve performance of outgoing batch with an index
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Mar 7, 2008
1 parent bd6ad04 commit 63ed563
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions symmetric/src/main/resources/ddl-config.xml
Expand Up @@ -39,6 +39,10 @@
<column name="batch_type" type="CHAR" size="2" required="true" default="EV" />
<column name="status" type="CHAR" size="2" />
<column name="create_time" type="TIMESTAMP" />
<index name="idx_ob_node_id_status">
<index-column name="node_id" />
<index-column name="status" />
</index>
</table>

<table name="outgoing_batch_hist">
Expand Down
3 changes: 3 additions & 0 deletions symmetric/src/main/resources/symmetric-upgrade.xml
Expand Up @@ -195,6 +195,9 @@
<value>
alter table ${sync.table.prefix}_incoming_batch_hist add (database_millis numeric(22))
</value>
<value>
create idx_ob_node_id_status on ${sync.table.prefix}_outgoing_batch (node_id, status);
</value>
</list>
</property>
</bean>
Expand Down

0 comments on commit 63ed563

Please sign in to comment.