Switch to using an aggregated logs query and infinite scrolling

This should allow users to work with large logs set.

Fixes #294
This commit is contained in:
Joseph Schorr 2015-07-31 13:38:02 -04:00
parent 572d6ba53c
commit 3d6c92901c
15 changed files with 270 additions and 99 deletions

View file

@ -0,0 +1,26 @@
"""Add LogEntry repo-datetime-kind index
Revision ID: 5232a5610a0a
Revises: 437ee6269a9d
Create Date: 2015-07-31 13:25:41.877733
"""
# revision identifiers, used by Alembic.
revision = '5232a5610a0a'
down_revision = '437ee6269a9d'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.create_index('logentry_repository_id_datetime_kind_id', 'logentry', ['repository_id', 'datetime', 'kind_id'], unique=False)
### end Alembic commands ###
def downgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.drop_index('logentry_repository_id_datetime_kind_id', table_name='logentry')
### end Alembic commands ###