Skip to content

Commit

Permalink
fix(Database): Remove unused corpus_file_freqs, impeding dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
gremid committed Jan 8, 2025
1 parent aed9fd8 commit 282e82e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions wordprofile/wpse/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ def init_word_profile_tables(connection: Connection, database: str):
wordprofile.wpse.db_tables.get_table_mwe_match(meta)
meta.create_all(connection)

connection.execute(
text(
"""
CREATE OR REPLACE
VIEW corpus_file_freqs
AS
SELECT cf.corpus, COUNT(cf.file)
FROM corpus_files cf
GROUP BY cf.corpus
"""
)
)


def create_indices(connection: Connection):
logger.info("CREATE INDEX indices for files, concordances, and matches")
Expand Down

0 comments on commit 282e82e

Please sign in to comment.