**from psycopg2 import extras as ex ** This is the most frequently used and fastest method for batch inserting multiple pieces of data into postgre using psycopg2. This method is encapsulated into insert_many in the following class
import psycopg2from psycopg2 import extras as exfrom common.log_utils import get_loggerfrom conf.config import PostgresqlConfiglogger = get_logger(__name__)