Normal Topic Speeding Up Mass Update (Read 656 times)
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Speeding Up Mass Update
Oct 31st, 2005 at 6:19pm
Print Post Print Post  
Hi all,

I've currently got a few xlookup commands on form entry to grab values from another database.  So, when I hit F10 to go to the next record, it takes 1-2 seconds.  No big deal.

However, when I run a mass update, it looks like it runs these form entry commands, so a mass update of 10,000 records will take *forever*.

What sort of condition can I place on my form entry code so it doesn't run when I do a mass update?

Or do I have to copy my form to another form, and take out the form entry programming, to have a screen exclusively for mass updating?

Thanks!
Blair
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Speeding Up Mass Update
Reply #1 - Oct 31st, 2005 at 6:36pm
Print Post Print Post  
Blair,

Mass Updates do not run the on Form entry programming for the records that are being updated.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: Speeding Up Mass Update
Reply #2 - Oct 31st, 2005 at 6:45pm
Print Post Print Post  
Okay ... so what might be bogging out my mass update commands, or how can I speed it up? 

Without going into all the code I've typed, I'm somewhat stumped on this one...

- I'm testing on 85,000 records with 2 subtable data fields
- I don't seem to have a lot going on in GLOBAL CODE
- I have a sort spec running for my subtables

Does this point to a bog-out point I could fix?

Thanks!
Blair

(T minus 6 days to going live...  Shocked)

  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Speeding Up Mass Update
Reply #3 - Oct 31st, 2005 at 6:49pm
Print Post Print Post  
Quote:
Okay ... so what might be bogging out my mass update commands, or how can I speed it up? 

Without going into all the code I've typed, I'm somewhat stumped on this one...

- I'm testing on 85,000 records with 2 subtable data fields
- I don't seem to have a lot going on in GLOBAL CODE
- I have a sort spec running for my subtables

Do you have to run the sort when mass updating?
Quote:
Does this point to a bog-out point I could fix?

Thanks!
Blair

(T minus 6 days to going live...  Shocked)

Are you standalone?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: Speeding Up Mass Update
Reply #4 - Oct 31st, 2005 at 6:52pm
Print Post Print Post  
No, I don't need to run the sort if I'm doing a mass update.  Is there some sort of condition like @mode() that I could put in my sort to prevent it just for mass updates?

Currently I'm building/testing on standalone.  Once the sales team is back in the office (their voice mail says Wednesday), I'll be snagging 25-30 licenses and (barring complications) start porting over my staff to Sesame next week.  My "server" is ready to go, and the staff have been getting weekly acclimatization sessions with the database in progress...
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Speeding Up Mass Update
Reply #5 - Oct 31st, 2005 at 7:06pm
Print Post Print Post  
Before we find a way to remove the sort in the final design, let's work on some diagnostics as to what is causing the slow down.

Run a "null" mass update (no programming) with the no sort spec on any forms or subforms.

Next try a programmed mass update with your programming in place, but with no sort on any forms or subforms.

Then, run a "null" mass update, but with the sorts in place.

Also, try with and without "macro visibility" turned on.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged