LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[FIX] Added indexes for faster execution log queries (#1376)
Chandrasekharan M189f36c0e018
diff --git a/backend/workflow_manager/workflow_v2/migrations/0015_executionlog_idx_wf_execution_event_time_and_more.py b/backend/workflow_manager/workflow_v2/migrations/0015_executionlog_idx_wf_execution_event_time_and_more.pynew file mode 100644index 000000000..f98987581--- /dev/null+++ b/backend/workflow_manager/workflow_v2/migrations/0015_executionlog_idx_wf_execution_event_time_and_more.py@@ -0,0 +1,31 @@+# Generated by Django 4.2.1 on 2025-06-20 06:29++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("workflow_v2", "0014_remove_filehistory_unique_workflow_cachekey_and_more"),+ ]++ operations = [+ migrations.AddIndex(+ model_name="executionlog",+ index=models.Index(+ fields=["wf_execution", "event_time"], name="idx_wf_execution_event_time"+ ),+ ),+ migrations.AddIndex(+ model_name="executionlog",+ index=models.Index(+ fields=["file_execution", "event_time"],+ name="idx_file_execution_event_time",+ ),+ ),+ migrations.AddIndex(+ model_name="executionlog",+ index=models.Index(+ fields=["execution_id", "event_time"], name="idx_execution_id_event_time"+ ),+ ),+ ]diff --git a/backend/workflow_manager/workflow_v2/models/execution_log.py b/backend/workflow_manager/workflow_v2/models/execution_log.pyindex acecfe66a..fea204310 100644--- a/backend/workflow_manager/workflow_v2/models/execution_log.py+++ b/backend/workflow_manager/workflow_v2/models/execution_log.py@@ -46,3 +46,15 @@ class ExecutionLog(BaseModel):verbose_name = "Execution Log"verbose_name_plural = "Execution Logs"db_table = "execution_log"+ indexes = [+ models.Index(+ fields=["wf_execution", "event_time"], name="idx_wf_execution_event_time"+ ),+ models.Index(+ fields=["file_execution", "event_time"],+ name="idx_file_execution_event_time",+ ),+ models.Index(+ fields=["execution_id", "event_time"], name="idx_execution_id_event_time"+ ),+ ]