Go Back   DeveloperBarn Forums > Databases > Microsoft Access

Sponsored Links

Discuss "Slow Concat Code" in the Microsoft Access forum.

Microsoft Access - Microsoft Access is a database for small to medium applications. Learn tips and tricks and best database practices here.


Closed Thread « Previous Thread | Next Thread »
 
LinkBack Thread Tools Display Modes
  #1  
Old May 1st, 2008, 07:55 AM
AOG123's Avatar
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 93
Thanks: 6
Thanked 23 Times in 18 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default Slow Concat Code

Please see attached Sample,.

This may look like its fairly quick,.. but its the slow as hell,.. especially when cross referencing againts qty's already ordered. "not included in sample"

I have only attached a basic sample of the query with some data, on my full system this acts very much like a Dlookup would do on a continuous form. "if you were foolish enough to use one there"

Check out the module for the code

My Question is: Id there an alternate "Speedy way" to produce the same results as seen in the sample.

Thanks

AOG
Attached Files
File Type: zip db1.zip (13.7 KB, 7 views)
__________________
If i helped you, make me famous by clicking the
Sponsored Links
  #2  
Old May 1st, 2008, 08:08 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

Do you absolutely need to use a variant data type? This data type produces extra overhead that could be causing some performance issues.
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

Join our Folding team: DeveloperBarn Folding
  #3  
Old May 1st, 2008, 08:32 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

May also want to see if you can get this function working:
Very Fast String Concatenation

Another thought is to see if you can do some of this within the actual query.
  #4  
Old May 1st, 2008, 08:48 AM
AOG123's Avatar
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 93
Thanks: 6
Thanked 23 Times in 18 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default

Ive added the example of the very fast code,

I included & "-" & in the query so its easier to see what it's doing
Attached Files
File Type: zip db1_Backup.zip (14.4 KB, 3 views)

Last edited by AOG123; May 1st, 2008 at 08:54 AM.
  #5  
Old May 1st, 2008, 08:59 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

Did this work for you? It runs great on my machine.
  #6  
Old May 1st, 2008, 09:01 AM
AOG123's Avatar
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 93
Thanks: 6
Thanked 23 Times in 18 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default

Worked but didn't do what i wanted,.. might have made a mistake,.. see the latest upload above which shows the results ,.. thanks
  #7  
Old May 1st, 2008, 09:11 AM
AOG123's Avatar
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 93
Thanks: 6
Thanked 23 Times in 18 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default

After a little more testing,.. the original code is actully quite fast,.. my problem is the Tables are held on another Drive and the front end is on the desktop,.. connecting through the linked tables is causing the delay.
  #8  
Old May 1st, 2008, 09:12 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

The example function AppendStrings in the link I provided accepts two parameters, with the second being an array. You would have to call this function after you created an array from the recordset values. I guess I misunderstood how you were doing this. I'm thinking there might be a way to do what you want from the query by itself...
  #9  
Old May 1st, 2008, 09:13 AM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

Default

Quote:
Originally Posted by AOG123 View Post
After a little more testing,.. the original code is actully quite fast,.. my problem is the Tables are held on another Drive and the front end is on the desktop,.. connecting through the linked tables is causing the delay.
I thought it was pretty fast when I ran it as well, but did still notice a performance hit when concatenating the strings.
  #10  
Old May 1st, 2008, 09:49 AM
AOG123's Avatar
Lightning Master

 
Join Date: Mar 2008
Location: Fortress Of Solitude
Posts: 93
Thanks: 6
Thanked 23 Times in 18 Posts
Rep Power: 1
AOG123 is on a distinguished road

Awards Showcase
Microsoft Access 
Total Awards: 1

Default

@ JMH Thanks for your input,.. i guess its just a network issue,.. i'll leave this open a few days to see if anyone can come up with something,

"Please note we have looked at Performance Analyzer" and keeping the lbd open
Closed Thread

  DeveloperBarn Forums > Databases > Microsoft Access

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 04:41 PM.



Content Relevant URLs by vBSEO 3.2.0