Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indexes to 'name' and 'date_created' the event_log table #44

Merged
merged 1 commit into from
Jan 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to

## [Unreleased]

### Added
- Added indexes to 'name' and 'date_created' the event_log table

## [1.1.0] - 2019-01-09

### Added
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-011" author="TechPod" logicalFilePath="011-add-indexes-to-event_log.changelog.xml">

<createIndex indexName="idx_event_log_name"
tableName="event_log"
unique="false">
<column name="name" type="TEXT"/>
</createIndex>

<createIndex indexName="idx_event_log_date_created"
tableName="event_log"
unique="false">
<column name="date_created" type="TIMESTAMP WITH TIME ZONE"/>
</createIndex>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-011" author="TechPod"
logicalFilePath="011-rename-publish_queue-table.changelog.xml">
<changeSet id="event-store-012" author="TechPod"
logicalFilePath="012-rename-publish_queue-table.changelog.xml">


<sql>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-012" author="TechPod"
logicalFilePath="012-recreate-publish-queue-table.changelog.xml">
<changeSet id="event-store-013" author="TechPod"
logicalFilePath="013-recreate-publish-queue-table.changelog.xml">

<createTable tableName="publish_queue">
<column name="id" type="BIGSERIAL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-013" author="TechPod"
logicalFilePath="013-add-sequence-column-to-event_log.xml">
<changeSet id="event-store-014" author="TechPod"
logicalFilePath="014-add-sequence-column-to-event_log.xml">

<createSequence cycle="false"
sequenceName="event_sequence_seq"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-014" author="TechPod"
logicalFilePath="014-add-index-to-sequence-column-on-event_log.xml">
<changeSet id="event-store-015" author="TechPod"
logicalFilePath="015-add-index-to-sequence-column-on-event_log.xml">

<createIndex indexName="event_log_sequence_number_idx"
tableName="event_log"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-015" author="TechPod"
logicalFilePath="015-rename-sequence-columns-on-event_log.xml">
<changeSet id="event-store-016" author="TechPod"
logicalFilePath="016-rename-sequence-columns-on-event_log.xml">

<dropIndex indexName="event_log_sequence_number_idx"
tableName="event_log"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="event-store-016" author="TechPod"
logicalFilePath="016-rename-sequence_number-column-on-event_stream.xml">
<changeSet id="event-store-017" author="TechPod"
logicalFilePath="017-rename-sequence_number-column-on-event_stream.xml">

<renameColumn newColumnName="position_in_stream"
oldColumnName="sequence_number"
Expand Down