feat: add acoustic dedupe pipeline and docker runtime
This commit is contained in:
@@ -32,6 +32,7 @@ CREATE INDEX IF NOT EXISTS idx_fast_hash ON audio_tracks(fast_hash);
|
||||
CREATE INDEX IF NOT EXISTS idx_sha256 ON audio_tracks(sha256);
|
||||
CREATE INDEX IF NOT EXISTS idx_duration ON audio_tracks(duration);
|
||||
CREATE INDEX IF NOT EXISTS idx_status ON audio_tracks(status);
|
||||
CREATE INDEX IF NOT EXISTS idx_duration_size ON audio_tracks(duration, file_size);
|
||||
"""
|
||||
|
||||
|
||||
@@ -41,5 +42,6 @@ def connect(path: Path) -> sqlite3.Connection:
|
||||
conn.row_factory = sqlite3.Row
|
||||
conn.execute("PRAGMA journal_mode=WAL")
|
||||
conn.execute("PRAGMA foreign_keys=ON")
|
||||
conn.execute("PRAGMA busy_timeout=5000")
|
||||
conn.executescript(SCHEMA)
|
||||
return conn
|
||||
|
||||
Reference in New Issue
Block a user