Re: slow access to MySql Database

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Chris R. Timmons (crtimmons_at_X_NOSPAM_Xcrtimmonsinc.com)
Date: 11/25/04


Date: Thu, 25 Nov 2004 06:42:46 -0800

Jim Lawton <ucan@use.your.initiative> wrote in
news:tj3bq05bt2cbs7t7rodefq4hvk5epd0fnu@4ax.com:

>
>
> I'm not sure where my problem lies, but someone here might have
> a suggestion.
>
> I'm developing a .NET web application, (but I don't really)
> think that's relevant.
>
> I'm running MySQL 4.1.7-nt on my laptop, and I'm accessing it
> through ODBC (MyODBC-3.51.10-x86-win-32bit).
>
> I already had the application running OK on my desktop, and when
> I created the same environment on the laptop, retrieving trivial
> amounts of data (5 rows) from a table is taking 6 seconds.
> Updates the same. IN otherwords any table access takes 5 or six
> seconds. (Table only has about twenty rows in it).
>
> I can connect to the database on the laptop from the desktop
> (i.e - application runs on desktop, retrieves data from laptop -
> works fine, not noticeably slower than local on desktop.
>
> If I connect the other way - application on laptop, database on
> desktop, it runs just as slowly as locally.
>
> The effect is the same whether I connect to 127.0.0.1 or via the
> machine name.
>
> I don't really know where to look. Any suggestions would be
> gratefully received...

Jim,

I'm not sure what the exact problem could be, but here are some
ideas to try on your laptop:

- Turn on ODBC Trace.

  Go to Start / Programs / Administrative Tools / Data Sources (ODBC).

  Click on the Tracing tab.

- I'm sure MySql also has some kind of tracing or logging facility.
  You might want to check into that.

- Turn off System Restore.

  I encountered a similar problem with Interbase database files that
  have a GDB extension. System Restore will backup files with a
  certain extension every time they are modified, which can slow
  things down a lot if the file is frequently modified.

  The file extensions that System Restore backs up are listed in
  FileList.xml, located somewhere under c:\windows. Note that this
  file cannot be modified. If it is, Windows will simply overwrite
  the changes by refreshing it from the system cache.

-- 
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/


Relevant Pages

  • Re: slow access to MySql Database
    ... >> I'm not sure where my problem lies, ... >> I created the same environment on the laptop, ... >- Turn off System Restore. ... > certain extension every time they are modified, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Computer Issues
    ... I am absolutely goin' through it with my laptop. ... I tried system restore and met with the no valid restore point. ... I had a tough time getting my pictures & documents saved to disk. ... Today the new power cord comes. ...
    (alt.support.chronic-pain)
  • RE: Vista constantly rebooting after this weeks updates - "Config
    ... So I finally got my laptop back online. ... Microsoft Support. ... I had to system restore to a couple days before this ... are some references to the same message related to SP1 installation but my ...
    (microsoft.public.windowsupdate)
  • Re: Help! Deep in Computer hell.
    ... registry files really need to be addressed. ... I would gladly have done a System Restore on this machine days ago, ... visited System Restore on my functioning laptop, ... did you try again to uninstall VirusScan via add/remove ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: System Restore Wont Restore!
    ... > My wireless network used to let me print from my laptop to the printer on ... > restore point in System Restore fails to restore. ...
    (microsoft.public.windowsxp.general)