473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

slow access to MySql Database



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
Nov 16 '05 #1
7 2838
Jim Lawton <uc**@use.your.initiative> wrote in
news:tj********************************@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/
Nov 16 '05 #2
Hi,
Why use ODBC (the old 3.51) in C#. You can find a free managed
provider (URL http://umn.dl.sourceforge.
net/sourceforge/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.16b.
exe) and it's fast.
Best regards
ubik
11/25/2004 9:51:21 AM
Jim Lawton <uc**@use.your.initiative> wrote in message
<tj********************************@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

Nov 16 '05 #3
On Thu, 25 Nov 2004 06:42:46 -0800, "Chris R. Timmons"
<crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote:
Jim Lawton <uc**@use.your.initiative> wrote in
news:tj********************************@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.


Thanks Chris, I'll give these a go - I think the problem does lie with the OS,
because I changes to a native provider, and the symptoms remain the same.

J
Nov 16 '05 #4
On Thu, 25 Nov 2004 21:21:00 +0200, "Cristian Lupu" <ci********@yahoo.com>
wrote:
Hi,
Why use ODBC (the old 3.51) in C#. You can find a free managed
provider (URL http://umn.dl.sourceforge.
net/sourceforge/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.16b.
exe) and it's fast.

Thanks ubik - I tried the managed provider from bytefx - but that had its own
problems. In so far as it worked, it displayed the same symptoms as ODBC.
I'll try your suggestion though, thanks for the tip.

Jim

11/25/2004 9:51:21 AM
Jim Lawton <uc**@use.your.initiative> wrote in message
<tj********************************@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


Nov 16 '05 #5
On Fri, 26 Nov 2004 08:09:19 GMT, Jim Lawton <uc**@use.your.initiative> wrote:
On Thu, 25 Nov 2004 21:21:00 +0200, "Cristian Lupu" <ci********@yahoo.com>
wrote:
Hi,
Why use ODBC (the old 3.51) in C#. You can find a free managed
provider (URL http://umn.dl.sourceforge.
net/sourceforge/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.16b.
exe) and it's fast.

I'm no further forward with my basic problem, but I can now say that ByteFX
seems much superior to MySQLDRiverCS better BLOB handling, and more intuitive
dates.

I know this is OT here, but completes the thread for the archive ...


Thanks ubik - I tried the managed provider from bytefx - but that had its own
problems. In so far as it worked, it displayed the same symptoms as ODBC.
I'll try your suggestion though, thanks for the tip.


Nov 16 '05 #6
On Fri, 26 Nov 2004 08:09:19 GMT, Jim Lawton <uc**@use.your.initiative> wrote:
On Thu, 25 Nov 2004 21:21:00 +0200, "Cristian Lupu" <ci********@yahoo.com>
wrote:
Hi,
Why use ODBC (the old 3.51) in C#. You can find a free managed
provider (URL http://umn.dl.sourceforge.
net/sourceforge/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.16b.
exe) and it's fast.

I'm no further forward with my basic problem, but I can now say that ByteFX
seems much superior to MySQLDRiverCS better BLOB handling, and more intuitive
dates.

I know this is OT here, but completes the thread for the archive ...


Thanks ubik - I tried the managed provider from bytefx - but that had its own
problems. In so far as it worked, it displayed the same symptoms as ODBC.
I'll try your suggestion though, thanks for the tip.


Nov 16 '05 #7
Jim Lawton wrote:
On Fri, 26 Nov 2004 08:09:19 GMT, Jim Lawton <uc**@use.your.initiative> wrote:
On Thu, 25 Nov 2004 21:21:00 +0200, "Cristian Lupu" <ci********@yahoo.com>
wrote:
Why use ODBC (the old 3.51) in C#. You can find a free managed
provider (URL http://umn.dl.sourceforge.
net/sourceforge/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.16b.
exe) and it's fast.

I'm no further forward with my basic problem, but I can now say that ByteFX
seems much superior to MySQLDRiverCS better BLOB handling, and more intuitive
dates.


... though it is discontinued as ByteFX and is now the MySql .NET
provider (downloadable from MySql.org). The problem with the old ByteFX
driver is that it apparently can't connect with the latest mysql 4.1
version (I couldn't get it to work). DId you manage to get it to connect
to a default install of MySql 4.1.1g (the latest I think) with InnoDB?
It kept complaining that my client was out of date, which is an error
which is displayed when you use new password storage settings and an old
client (which I didn't I downloaded the latest stable client/server from
the website)

FB
Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stuart Mueller | last post by:
I have a mySQL database, called clients it has a single table called client with 2325 records in it. It was originally an Access database but I have exported it to mySQL. I have created a system...
0
by: Jesse Sheidlower | last post by:
I'm struggling with speed issues on some queries that I would have expected to be relatively fast. Perhaps even more frustratingly, when I've tried to break these down into their components, they...
7
by: Dan V. | last post by:
We use dot net, asp.net and iis 5 on a pentium 1.2 GHZ (dual capable - one in now) and 1 MB RAM and Access 2002. Our ASP.NET Database queries to MS Access (running locally) are very slow, (the...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
83
by: D. Dante Lorenso | last post by:
Trying to use the 'search' in the docs section of PostgreSQL.org is extremely SLOW. Considering this is a website for a database and databases are supposed to be good for indexing content, I'd...
12
by: VMI | last post by:
For some reason, the process of retrieving data (about 20 records) from an Access table that has 400K records to a dataTable is taking over 3 mins. to complete. Below is my code to connect to the...
12
by: timothy.williams | last post by:
Hi. I have a Python program that parses a file and inserts records into a database with MySQLdb. I recently upgraded to MySQL 5.0.8, and now my parser runs *really* slow. Writing out to CSV...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
12
by: grace | last post by:
i am wondering why my database retrieval becomes too slow...we set up a new server (ubuntu, breezy badger) machine where we transferred all our files from the old server.. Our new server uses Asus...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.