![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
BUT as soon as the app is used by more than 1 person the performance is turning to horrible. With one user the performance is very fast, but as soon as the second user logs on, the app seems to 'bump' ... but against what ?? Of course I checked Tony's performance faq and I was already using lots of tips mentioned there. e.g. persistent connection and loading recordsource on 'heavy' forms at runtime. |
#3
| |||
| |||
|
|
On Thu, 4 Nov 2010 10:36:41 +0100, "Arno R" arracomn_o_s_p_a_m (AT) planet (DOT) nl> wrote: BUT as soon as the app is used by more than 1 person the performance is turning to horrible. With one user the performance is very fast, but as soon as the second user logs on, the app seems to 'bump' ... but against what ?? Of course I checked Tony's performance faq and I was already using lots of tips mentioned there. e.g. persistent connection and loading recordsource on 'heavy' forms at runtime. Well, it still sounds like the persistent connectioh problem. Just how are you doing that? For example do you have a form level database/recordset variable or a module (which would then be global) variable? If the former as soon as you close the form the variable would go away. Tony -- Tony Toews, Microsoft Access MVP Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/ For a convenient utility to keep your users FEs and other files updated see http://www.autofeupdater.com/ |
#4
| |||
| |||
|
|
I am using a bound main-menu Form which is *always* open. This form is bound to a one-record table (Application-settings) from the backend. |
#5
| |||
| |||
|
|
BTW you have to watch for users hitting the mouse wheel on such one record forms. If they do so and somehow manage to enter a seconad blank record interesting things can happen in your Access database. Tony |
#6
| |||
| |||
|
|
BTW: This 'problem-app' is not slow *all* the time. Retrieving records is no problem. The problem is adding records as I see now... |
|
I will try to explain: There is a form that is opened several times every day with actual records of the choosen week. Before the form opens, new records are added by means of a 'FillWeek' procedure. This procedure gathers the needed records (in a temptable) and simply tries to add them to the backend-table (whether they exist or not) Records that exist (same secondary index) are discarded by Access. This procedure seems to be causing the slowness... When I choose a 'closed' week (no records can be added, so the procedure 'FillWeek' is not used) the app is responding fine. |
#7
| |||
| |||
|
|
BTW: This 'problem-app' is not slow *all* the time. Retrieving records is no problem. The problem is adding records as I see now... I will try to explain: There is a form that is opened several times every day with actual records of the choosen week. Before the form opens, new records are added by means of a 'FillWeek' procedure. This procedure gathers the needed records (in a temptable) and simply tries to add them to the backend-table (whether they exist or not) Records that exist (same secondary index) are discarded by Access. This procedure seems to be causing the slowness... When I choose a 'closed' week (no records can be added, so the procedure 'FillWeek' is not used) the app is responding fine. So, as I see now, the problem is adding records (append query) while the app is opened by more than one user. Any more or other ideas ?? |
#8
| |||
| |||
|
|
Hi, I am facing difficulties with an (old) app of mine. It's an Access 2.0 application which has been running for years now. I got complaints from a client (one of the 'heavy' users with lots of records) about multi-user performance. I converted to Access 2003, and now I want to distribute this app with the runtime of Access 2007. So far so good, conversion was not at all easy, but the app is working fine now, BUT as soon as the app is used by more than 1 person the performance is turning to horrible. With one user the performance is very fast, but as soon as the second user logs on, the app seems to 'bump' ... but against what ?? Of course I checked Tony's performance faq and I was already using lots of tips mentioned there. e.g. persistent connection and loading recordsource on 'heavy' forms at runtime. I just got a report back from a testscenario: -- Two XP machines using a local workgroup (no domain involved here) * * Both machines on a separate switch. isolated from the corporate network -- Performance is fine (very speedy) with one user. * *As soon as the second user starts the app (even doing nothing...) it seems to freeze... Even when the second user logs out the performance stays bad... The initial user has to log out and log in again to get the initial performance back... FYI: Also with the Access 2.0 app it's is the same problem. (I just did not know that...) In fact the 'old' app even runs faster.... Any ideas? Regards, Arno R |
#9
| |||
| |||
|
|
Use an unmatched query in the append: INSERT INTO table SELECT T.f1, T.f2, ... FROM temp As T LEFT JOIN table ON T.id= table.id And T.sod = table.sid WHERE table.sid Is Null OTOH, using a temp table may account for part of the slowness. -- Marsh |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |