473,411 Members | 2,230 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Please confirm my understanding for minimizing BE to FE data transfer

I have been trying to make sure my transfer of data from BE to FE is the
lowest possible.

I found this info in a web posting by Pat Partman, a MVP, here

http://72.14.203.104/search?q=cache:...lnk&cd=4&gl=us

Please verify that I have it correct:

1) A Form filter set in a form that has a record source as a stored
query that does not itself restrict the records will NOT reduce the data
transferred from BE to FE. Basically the query will run and transfer
all the data that meets the query criteria. Then, the filter specified
on the form will be used to restrict what is shown on the form.

2) The where argument of the open form method is combined with the
recordsource to provide a complete query..... so in this case the where
argument does limit the number of rows returned by applying the where
clause.
So it seems I should use the open form with where clause when starting a
form with a specific selection criteria or when dealing with an already
open form, dynamically change the record source with a sql statement
having a where clause included.

correct?

Bob
Feb 16 '07 #1
9 2064
On Thu, 15 Feb 2007 18:41:21 -0600, Bob Alston <bo********@yahoo.com>
wrote:

You correctly paraphrased his arguments.

The way I understand the WHERE argument is a bit different: I think
the entire INDEX (if one exists) travels to the client, then the
client selects some records, and those records are then requested from
the server.

If you truly have a situation where network traffic has to be as low
as possible, you must use a server-based database such as the free SQL
Server 2005 Express Edition, and use proper techniques to benefit the
most from its ability to process requests server-side and only give
you the resulting rows.

-Tom.

>I have been trying to make sure my transfer of data from BE to FE is the
lowest possible.

I found this info in a web posting by Pat Partman, a MVP, here

http://72.14.203.104/search?q=cache:...lnk&cd=4&gl=us

Please verify that I have it correct:

1) A Form filter set in a form that has a record source as a stored
query that does not itself restrict the records will NOT reduce the data
transferred from BE to FE. Basically the query will run and transfer
all the data that meets the query criteria. Then, the filter specified
on the form will be used to restrict what is shown on the form.

2) The where argument of the open form method is combined with the
recordsource to provide a complete query..... so in this case the where
argument does limit the number of rows returned by applying the where
clause.
So it seems I should use the open form with where clause when starting a
form with a specific selection criteria or when dealing with an already
open form, dynamically change the record source with a sql statement
having a where clause included.

correct?

Bob
Feb 16 '07 #2
Tom van Stiphout wrote:
On Thu, 15 Feb 2007 18:41:21 -0600, Bob Alston <bo********@yahoo.com>
wrote:

You correctly paraphrased his arguments.

The way I understand the WHERE argument is a bit different: I think
the entire INDEX (if one exists) travels to the client, then the
client selects some records, and those records are then requested from
the server.

If you truly have a situation where network traffic has to be as low
as possible, you must use a server-based database such as the free SQL
Server 2005 Express Edition, and use proper techniques to benefit the
most from its ability to process requests server-side and only give
you the resulting rows.

-Tom.

>I have been trying to make sure my transfer of data from BE to FE is the
lowest possible.

I found this info in a web posting by Pat Partman, a MVP, here

http://72.14.203.104/search?q=cache:...lnk&cd=4&gl=us

Please verify that I have it correct:

1) A Form filter set in a form that has a record source as a stored
query that does not itself restrict the records will NOT reduce the data
transferred from BE to FE. Basically the query will run and transfer
all the data that meets the query criteria. Then, the filter specified
on the form will be used to restrict what is shown on the form.

2) The where argument of the open form method is combined with the
recordsource to provide a complete query..... so in this case the where
argument does limit the number of rows returned by applying the where
clause.
So it seems I should use the open form with where clause when starting a
form with a specific selection criteria or when dealing with an already
open form, dynamically change the record source with a sql statement
having a where clause included.

correct?

Bob
Thanks. What you say makes a lot of sense to me as to how the process
works. I think it really is different from what I found in the article
I quoted, but makes more sense for situations involving open form and
use of filters in a form.

I did some further searching on forms and index and found several other
posting that is very similar to what you have said.

Again, thank you. I now think I understand the essence of what happens
and how I can maximize performance in a FE/BE situation.

Bob
Feb 16 '07 #3
I may be wrong, but I always understood that only the records displayed by
the form are transmitted from BE to FE. Now if you open the form, scroll to
the last record, then set a filter; you will have transmitted all the data.

"Bob Alston" <bo********@yahoo.comwrote in message
news:H4************@newsfe06.lga...
I have been trying to make sure my transfer of data from BE to FE is the
lowest possible.

I found this info in a web posting by Pat Partman, a MVP, here

http://72.14.203.104/search?q=cache:...lnk&cd=4&gl=us
>
Please verify that I have it correct:

1) A Form filter set in a form that has a record source as a stored
query that does not itself restrict the records will NOT reduce the data
transferred from BE to FE. Basically the query will run and transfer
all the data that meets the query criteria. Then, the filter specified
on the form will be used to restrict what is shown on the form.

2) The where argument of the open form method is combined with the
recordsource to provide a complete query..... so in this case the where
argument does limit the number of rows returned by applying the where
clause.
So it seems I should use the open form with where clause when starting a
form with a specific selection criteria or when dealing with an already
open form, dynamically change the record source with a sql statement
having a where clause included.

correct?

Bob

Feb 16 '07 #4
Tom van Stiphout <no*************@cox.netwrote in
news:7a********************************@4ax.com:
The way I understand the WHERE argument is a bit different: I
think the entire INDEX (if one exists) travels to the client, then
the client selects some records, and those records are then
requested from the server.
I think it's only as many index pages as are needed if it's the PK
index, but probably the whole index otherwise.

But I could be completely wrong on that.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 16 '07 #5
David W. Fenton wrote:
Tom van Stiphout <no*************@cox.netwrote in
news:7a********************************@4ax.com:
>The way I understand the WHERE argument is a bit different: I
think the entire INDEX (if one exists) travels to the client, then
the client selects some records, and those records are then
requested from the server.

I think it's only as many index pages as are needed if it's the PK
index, but probably the whole index otherwise.

But I could be completely wrong on that.
I just ordered:

Microsoft Jet Database Engine Programmer's Guide (Microsoft Professional
Editions) - Dan Haught

Maybe I will have a definitive answer in a week or two.

Bob
Feb 16 '07 #6
"paii, Ron" wrote
I may be wrong, but I always understood that only
the records displayed by the form are transmitted
from BE to FE. Now if you open the form, scroll to
the last record, then set a filter; you will have
transmitted all the data.
No, that's not so, with a file-server database. Index information, at the
very least, will be transmittted in order to allow Jet to request those
specific records. If selection is not on an Index, then all the records will
have to be examined, and that examination, by definition, is on the user's
machine.

It's non-trivial, as far as I know, there's no detailed specification
published by Microsoft, and I don't think there's been an updated
publication since Dan Haught's book, mentioned earlier. IIRC, there have
been a number of updates to Jet since Dan wrote that book.

Larry Linson
Microsoft Access MVP


Feb 16 '07 #7

"Larry Linson" <bo*****@localhost.notwrote in message
news:cnnBh.68$h8.33@trnddc05...
"paii, Ron" wrote
I may be wrong, but I always understood that only
the records displayed by the form are transmitted
from BE to FE. Now if you open the form, scroll to
the last record, then set a filter; you will have
transmitted all the data.

No, that's not so, with a file-server database. Index information, at the
very least, will be transmittted in order to allow Jet to request those
specific records. If selection is not on an Index, then all the records
will
have to be examined, and that examination, by definition, is on the user's
machine.

It's non-trivial, as far as I know, there's no detailed specification
published by Microsoft, and I don't think there's been an updated
publication since Dan Haught's book, mentioned earlier. IIRC, there have
been a number of updates to Jet since Dan wrote that book.

Larry Linson
Microsoft Access MVP

Thanks for the input.

If I open a form displaying whatever is the 1st record (Jet). Access would
only download that record from the BE or all?
Feb 16 '07 #8
What's the RecordSource?

Please understand: I don't receive divine revelations on the subject, don't
have access to the code, and don't have a specification for Jet.

I have been told that Jet is "smarter", sometimes, than I had assumed (that
was in connection with Filters). If you have single-form View, and the
RecordSource was "SELECT * FROM YourTable", it may well display the first
Record before retrieving all the Records, and I don't know when it retrieves
the others, or how it may buffer them.

The key items are "all the data extraction and manipulation is done on the
user's machine; no Access or Jet code runs on the server, and a remote
server is used in the same manner as if the backend database were on the
local hard drive."

Larry Linson
Microsoft Access MVP
"paii, Ron" <pa**@packairinc.comwrote in message
news:le******************************@athenet.net. ..
>
"Larry Linson" <bo*****@localhost.notwrote in message
news:cnnBh.68$h8.33@trnddc05...
>"paii, Ron" wrote
> I may be wrong, but I always understood that only
the records displayed by the form are transmitted
from BE to FE. Now if you open the form, scroll to
the last record, then set a filter; you will have
transmitted all the data.

No, that's not so, with a file-server database. Index information, at the
very least, will be transmittted in order to allow Jet to request those
specific records. If selection is not on an Index, then all the records
will
>have to be examined, and that examination, by definition, is on the
user's
machine.

It's non-trivial, as far as I know, there's no detailed specification
published by Microsoft, and I don't think there's been an updated
publication since Dan Haught's book, mentioned earlier. IIRC, there have
been a number of updates to Jet since Dan wrote that book.

Larry Linson
Microsoft Access MVP

Thanks for the input.

If I open a form displaying whatever is the 1st record (Jet). Access would
only download that record from the BE or all?


Feb 17 '07 #9
Bob Alston <bo********@yahoo.comwrote in
news:4F************@newsfe04.lga:
David W. Fenton wrote:
>Tom van Stiphout <no*************@cox.netwrote in
news:7a********************************@4ax.com :
>>The way I understand the WHERE argument is a bit different: I
think the entire INDEX (if one exists) travels to the client,
then the client selects some records, and those records are then
requested from the server.

I think it's only as many index pages as are needed if it's the
PK index, but probably the whole index otherwise.

But I could be completely wrong on that.
I just ordered:

Microsoft Jet Database Engine Programmer's Guide (Microsoft
Professional Editions) - Dan Haught

Maybe I will have a definitive answer in a week or two.
I have the Jet 3.5 version of that and I don't believe it actually
answers the question. From the shocking things MichKa used to say,
it wouldn't surprise me if nobody knows any longer how Jet actually
works internally.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 17 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Samuele Giovanni Tonon | last post by:
hi, i'm trying to develop a trivial application which random copy files from a directory to another one. i made it using pygtk for the graphical interface, however i find some problem with...
3
by: Del | last post by:
Does anyone know how to minimize all the windows on a desktop, programatically?
6
by: Tiraman | last post by:
Hi , I have a stored procedure which return an xml by using the (for xml auto/explicit) which working fine under the Query Analyzer . and i would like to build simple function that get the sp...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
3
by: Marc Jennings | last post by:
I have an architectural question that I would appreciate some input on, please. Earlier this year I spent some time in Sri Lanka working with a rpoject to help after the tsunami. A part of the...
0
by: Brian Reaburn | last post by:
Hello All: I have been struggling to find out what could possibly be wrong with this piece of code. From my understanding of the CONTAINSTABLE Function and using parameters with a query, this...
11
by: E.T. Grey | last post by:
Hi, I have an interesting problem. I have a (LARGE) set of historical data that I want to keep on a central server, as several separate files. I want a client process to be able to request the...
1
by: David | last post by:
Hi, I cannot get the following (MS Access) SQL statement working in my asp page, please can anyone help me ? Thanks :-) ------------------------------------------------ <% strQuery =...
7
by: vbnetdev | last post by:
My boss wants this done in a day. I would be happy with a week! Anyway, I have a dataset filled with data and need to populate an MS word chart with it when writing a report. Any tutorials or...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.