Home:ALL Converter>Queries in RPostgreSQL are very slow

Queries in RPostgreSQL are very slow

Ask Time:2018-08-26T04:17:41         Author:Esteban Angel

Json Formatter

Currently I'm building a Shiny APP using several queries to a PostgreSQL database (mainly SELECT and INSERT statements). The application works but I'm trying to make it faster. When I compare the execution times between the same query using the RPostgreSQL package and a db client like Postico, it's taking 8 times more with the RPostgreSQL package.

Any ideas of ways of boosting the performance or connecting to a PostgreSQL database from R?

Thanks

Author:Esteban Angel,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/52020930/queries-in-rpostgresql-are-very-slow
yy