Running queries in parallel in sqlalchemy
<p>I have a table (say table_A) in a db A, there are two other tables in db's B and C. I am running query like :</p>

<pre><code>session.query(Table_A).filter(Table_A.date &gt;= time1, InventoryLog.audit_date &lt; time2)
</code></pre>

<p>I am running it in a loop, adding the rows in table_B and updating time1,time2 in each iteration. </p>

<p>Now, I want to run another query in parallel on the same (or different table) for different time intervals and insert in another table_C (loop). The important point is to run them parallely.</p>

<p>How should I go about it in sqlalchemy? Should I use celery for this or will that be an overkill?</p>

<p>Thanks in advance!</p>