Created
September 23, 2019 18:01
-
-
Save devesh23/f0cc3d5be41508684bd0876ca156d2c4 to your computer and use it in GitHub Desktop.
Timing python multiprocessing module in Jupyter Notebook <INITIAL>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
from multiprocessing import Process | |
def execute(query): | |
%time subprocess.call(["psql", "-u", "username", "-d", "database_name", "-C", query]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment