SQL Queries with ODBC

W

wheeel_o

I am using a Postgres backend and Access for my frontend.

When I run a query in access, does the entire table which i am querying get transferred over the network and then get sorted by Access or does the ODBC create a Postgres SELECT command and transfer the output of that SELECT over the network?

To make my queries the most network efficient, should I be using queries in access? Views in Postgres? or maybe VB in Access?

Thanks very much.
 
R

Ron Weiner

I am totaly unfamiliar with Postgres, nut I suspect that unless you are
using a "PassThru" Query you are probably creating lots of network traffic.
The most efficent way to query the database would be to create Stored Procs,
UDF's, and Views in Postgres (assuming Postgres supports them) and execute
them from access, or use "PassThru" Queries from Access. This way only the
rows the app needs are moved over the network.

In pratice however you should do some testing to see how much the additional
network traffic affects performance. If I had a million row table and I
only needed one record, I would attempt to do as much Server Side stuff as I
could.

Ron W
wheeel_o said:
I am using a Postgres backend and Access for my frontend.

When I run a query in access, does the entire table which i am querying
get transferred over the network and then get sorted by Access or does the
ODBC create a Postgres SELECT command and transfer the output of that SELECT
over the network?
To make my queries the most network efficient, should I be using queries
in access? Views in Postgres? or maybe VB in Access?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top