Hello All!
I have a channel making a SELECT query from a MSSQL database then sending to a PostgreSQL database using an INSERT query. The process works well enough but it is very slow. When using the export/import tools built into SSMS and pgAdmin, I can export the data to CSV then import into PostgreSQL in under 30 minutes. The Qvera channel takes 8+ hours. It seems the INSERT is the bottleneck but I'm not 100% sure about that. Is there something I am missing in Qvera that can help speed things up?
INSERT INTO allergy.cus_shc_patientvisitprocsagg_1(
patientid, ticketnumber, patientvisitid, visitdate, patientvisitprocsid, dateofservice, currentinsurancecarrierid, currentinsurancecarriername, currentinsurancecarrierlistname, primaryinsurancecarrierid, primaryinsurancecarriername, primarycarrierlistname, chargecode, cptcode, totalcharge, totalpvpbalance, insurancebalance, paientbalance, totaladjustment, insuranceadjustment, patientadjustment, totalpayment, insurancepayment, patientpayment, voidchargesdetail, appiaaccountdetails, baddebtaccountdetails, denialcodes, visitdescription, lastpaymentdate, collecttype, lastmodified)
VALUES ('{m:PatientId}', '{m:TicketNumber}', '{m:PatientVisitId}', '{m:VisitDate}', '{m:PatientVisitProcsId}', '{m:DateOfService}', '{m:CurrentInsuranceCarrierID}', '{m:CurrentInsuranceCarrierName}', '{m:CurrentInsuranceCarrierListName}', '{m:PrimaryInsuranceCarrierID}', '{m:PrimaryInsuranceCarrierName}', '{m:PrimaryCarrierListName}', '{m:ChargeCode}', '{m:CPTCode}', '{m:TotalCharge}', '{m:TotalPVPBalance}', '{m:InsuranceBalance}', '{m:PaientBalance}', '{m:TotalAdjustment}', '{m:InsuranceAdjustment}', '{m:PatientAdjustment}', '{m:TotalPayment}', '{m:InsurancePayment}', '{m:PatientPayment}', '{m:VoidChargesDetail}', '{m:ApPiaAccountDetails}', '{m:BadDebtAccountDetails}', '{m:DenialCodes}', '{m:VisitDescription}', '{m:LastPaymentDate}', '{m:CollectType}', '{m:LastModified}');
Thanks for the help!