473,470 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Just venting - sometimes I hate Access.

8,435 Recognized Expert Expert
Argh!

Just got back to an old VB6 (at home) project I put on the back burner months ago. Among other things, it does a bit of image comparison, which appeared to be taking a ridiculously long time - like at least 5-10 seconds per image. I figured I just had some inefficient code there, it shouldn't take that long.

Well, I finally had a chance to dust off the source code and started logging some debugging messages at various points. It turns out that performing an update on single record in a pretty simple Access table, which contains around 3,000 records, is taking 8 seconds!

Ah well... I'll keep you guys posted on how it goes. Will probably come up with some questions along the way, but for now I don't remember enough about how it works to frame any reasonable questions.
Aug 24 '07 #1
8 1834
puppydogbuddy
1,923 Recognized Expert Top Contributor
Argh!

Just got back to an old VB6 (at home) project I put on the back burner months ago. Among other things, it does a bit of image comparison, which appeared to be taking a ridiculously long time - like at least 5-10 seconds per image. I figured I just had some inefficient code there, it shouldn't take that long.

Well, I finally had a chance to dust off the source code and started logging some debugging messages at various points. It turns out that performing an update on single record in a pretty simple Access table, which contains around 3,000 records, is taking 8 seconds!

Ah well... I'll keep you guys posted on how it goes. Will probably come up with some questions along the way, but for now I don't remember enough about how it works to frame any reasonable questions.
Killer,

If you are working with images in ms access these links are a must!

http://www.jamiessoftware.tk/article...ingimages.html

http://www.ammara.com/start/index-aw...ture&net=0&st=
Aug 24 '07 #2
NeoPa
32,556 Recognized Expert Moderator MVP
I don't really know why an update would take that long Killer, but I do know that Access tries to optimise things when it can and when it has enough information. Is your update being driven by software outside of the application (SQL running from VB for instance)?
Aug 24 '07 #3
Killer42
8,435 Recognized Expert Expert
If you are working with images in ms access these links are a must! ...
Thanks for that. I'll file them away for future reference.

However, while the application is dealing with images, it doesn't store them.
Aug 25 '07 #4
Killer42
8,435 Recognized Expert Expert
I don't really know why an update would take that long Killer, but I do know that Access tries to optimise things when it can and when it has enough information. Is your update being driven by software outside of the application (SQL running from VB for instance)?
I guess I'll have to pop over to Bill Gates' place and apologise for bad-mouthing his database software.

As it turns out, there was one more call in there that I had missed. As you might guess, it was this call (to an assembler routine that I wrote a few years back) to extract some information from the image which was taking the time, not the update.

I'll look into tweaking the routine if I can remember enough assembler, or maybe convert it back to VB. It was converted to assembler for speed, and in fact I think runs slower. Presumably because my asm sucks.
Aug 25 '07 #5
NeoPa
32,556 Recognized Expert Moderator MVP
...
It was converted to assembler for speed, and in fact I think runs slower. Presumably because my asm sucks.
It's entirely possible.
Most compilers nowadays do contain a bunch of optimisations. Things that could speed up compiled code (among others of course) is string handling (80286+ processors provide some special instructions) and file-access buffering. The latter should be provided by the OS anyway but may be done more cleverly within compiled code.
Aug 28 '07 #6
Killer42
8,435 Recognized Expert Expert
...string handling ... file-access buffering ...
The part that's taking too long just loops through the dots of an image, extracting colour information and so on. It does do quite a lot of processing, but I'm surprised it takes so long. Will have a fiddle when I can find time, and let you know how it goes. (May not be until the weekend.)

The funny things about this is, I think the assembler code slowed down considerably due to one of the Windows upgrades - I forget which one. I think it was basically when we went from cooperative to pre-emptive multitasking (I may have mentioned, this is an old program).
Aug 28 '07 #7
FishVal
2,653 Recognized Expert Specialist
Ah, you hurt me to the heart. In DOS times I used to be a rabid fan of asm. :)

Don't you want to post your asm routine if it is not too long?
And where did you place it? DLL?

Regards,
Fish
Aug 28 '07 #8
Killer42
8,435 Recognized Expert Expert
Ah, you hurt me to the heart. In DOS times I used to be a rabid fan of asm. :)
I on;y ever dabbled a bit, but quite enjoyed it. You certainly can't beat it for processing speed. Or at least I would have said that, a few Windows versions ago.

Don't you want to post your asm routine if it is not too long?
And where did you place it? DLL?
Yes, it's a DLL. I'll see whether I can track down the source. Hm... not sure I want to give away too much of my application's workings, though (besides which, my assembler code is embarrassing).
Aug 29 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Catherine Jo Morgan | last post by:
I'm still at the table design stage with the recreational tree climbing database. At one point I started using the Lookup Wizard to set up some lookup values. Then I remembered reading earlier in...
13
by: Lumpierbritches | last post by:
I'm curious as to why some questions posted here get results and solutions, while others are answered in a seemingly foreign language and I can't begin to comprehend or understand the answers that...
92
by: Jeffrey P via AccessMonster.com | last post by:
Our IT guys are on a vendetta against MS Access (and Lotus Notes but they've won that fight). What I can't understand is, what's the problem? Why does IT hate MS Access so much. I have tried...
2
by: Jeff | last post by:
raggle fraggle and so on Why does this happen? I had just entered some code and when I saved the form, through the menu option, Access nicely shutdown and lost the changes. I know, I should save...
18
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before....
40
by: PJ6 | last post by:
I want to rant, but I'm too busy at the moment. Who else hates working in C#? What's your biggest pet peeve? Paul
2
by: MLH | last post by:
Have a data entry form bound to a table. Has a save button on it that launches DoCmd.RunCommand acCmdSaveRecord in Access 97. In the form after-update code, I have a line looking something like...
30
by: HangEveryRepubliKKKan | last post by:
Ahahahaha.. Lets see if I get this Demented Lintard reasoning right. Vista is a failure becuase after 300 days after it's release, it only has 7.5% of the OS market while the Lintard OS, is a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.