Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Heikki Tuuri
Ivan, - Original Message - From: John B. Ivski [EMAIL PROTECTED] Newsgroups: mailing.database.myodbc Sent: Thursday, November 11, 2004 4:55 AM Subject: Re: InnoDB data files keep growing with innodb_file_per_table Heikki, the output shows that there are no dangling transactions, and

Re: Help using SSL from VB client, using MyODBC

2004-11-11 Thread Gleb Paharenko
Hello. I'm not a VB expert, but some notes about methods of establishing such connections can be found at: http://dev.mysql.com/doc/mysql/en/Windows_and_SSH.html http://dev.mysql.com/doc/mysql/en/mysql_ssl_set.html William Blair Wagner [EMAIL PROTECTED] wrote: I'm kind of new to

cfp: MCMP 2005

2004-11-11 Thread Mohamed khedr
Call for Papers First International Workshop on Managing Context Information in Mobile and Pervasive Environments (MCMP’2005) www.site.uottawa.ca/~mkhedr/MCMP05 In conjunction with The 6th International Conference

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Heikki Tuuri
Ivan, there is something very strange in your tablespace monitor output: 04 5:35:51 INNODB TABLESPACE MONITOR OUTPUT FILE SPACE INFO: id 0 size 120832, free limit 120064, free extents 3 not full

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Heikki Tuuri
Ivan, hmm... could it be that segments 0 1, 0 2, 0 3, etc. were printed close to the end of the output? The print routine first prints inode pages that are completely used, and after that other inode pages. Since the tablespace validation said the tablespace is ok, I guess the segments really

Checking the status of a field, and ensuring it is not updated before I change it

2004-11-11 Thread Joshua Beall
Hi All, I have the following situation: I want to check a row in a database (list of jobs that need to be run). So, my script checks the status field, and if it is not started, then it marks it as locked and running, and when it finishes, it marks it as completed. Now, here is what I am

Re: Tricky self join query help?

2004-11-11 Thread Brent Baisley
I noticed a few mistakes in my query, which may be causing some confusion and would probably cause it not to work. But I'll break everything down. The NULLs in the second owner column are the indicators that there is no matching owner in the most recent three months. Breaking down the query,

Re: improving query response time

2004-11-11 Thread Aleksandr Guidrevitch
Hi Chetan, Well, I would suggest to add separate index on either on bsc_id or data_GenTime, whichever returns smaller result. Then check with explain that this index is used May chetan t wrote: Hi mike, as i have mentioned in my previous mail the table structure which i am using is as fallows,

Queries taking 60 seconds+

2004-11-11 Thread John Smith
Afternoon All, I have the following table structure: CREATE TABLE properties ( id int(11) NOT NULL auto_increment, propid varchar(14) NOT NULL default '0', townid varchar(255) NOT NULL default '', countyid mediumint(5) NOT NULL default '0', address text NOT NULL, price int(14) NOT

RE: SQL Syntax Problem

2004-11-11 Thread Adams, Pat 006
-Original Message- From: David Blomstrom [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 4:08 PM To: [EMAIL PROTECTED] Subject: SQL Syntax Problem $sql = 'SELECT F.IDArea, C.IDArea, C.Name, C.Pop, C.Nationality, C.NationalityPlural, C.NationalityAdjective FROM

Re: Queries taking 60 seconds+

2004-11-11 Thread Victor Pendleton
What does the explain plan look like? John Smith wrote: Afternoon All, I have the following table structure: CREATE TABLE properties ( id int(11) NOT NULL auto_increment, propid varchar(14) NOT NULL default '0', townid varchar(255) NOT NULL default '', countyid mediumint(5) NOT NULL default

Strange error in DELETE query

2004-11-11 Thread Ronan Lucio
Hi, I have a MySQL-4.0.18 installed on a FreeBSD system. When I run the follow query: DELETE FROM table WHERE client_id = 1 AND row_id IN (2,5,7) only the first record is deleted. Am I doing something wrong or is it a MySQL bug? Thanks Ronan -- MySQL General Mailing List For list

Re: Queries taking 60 seconds+

2004-11-11 Thread John Smith
On Thu, 2004-11-11 at 13:58, Victor Pendleton wrote: What does the explain plan look like? id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE properties ref old,price,countyid countyid 3 const 9233 Using where; Using filesort The filesort I know

RE: Strange error in DELETE query

2004-11-11 Thread Jay Blanchard
[snip] When I run the follow query: DELETE FROM table WHERE client_id = 1 AND row_id IN (2,5,7) only the first record is deleted. Am I doing something wrong or is it a MySQL bug? [/snip] It is not a bug, just say it out loud AND row_id is 2 OR 5 OR 7 Once the OR condition is satisfied

Re: Checking the status of a field, and ensuring it is not updated before I change it

2004-11-11 Thread gerald_clark
Joshua Beall wrote: Hi All, I have the following situation: I want to check a row in a database (list of jobs that need to be run). So, my script checks the status field, and if it is not started, then it marks it as locked and running, and when it finishes, it marks it as completed. Now, here

RE: Queries taking 60 seconds+

2004-11-11 Thread Andy Eastham
John, Have you got a single multi-column index on countyid, price and old, or do you have individual indexes on each of these fields? The former would be much better. Andy -Original Message- From: John Smith [mailto:[EMAIL PROTECTED] Sent: 11 November 2004 14:15 To: Victor

Re: Queries taking 60 seconds+

2004-11-11 Thread Philippe Poelvoorde
Hi, could you try adding a key with ALTER TABLE properties ADD INDEX(countyid,old,price); It could maybe help getting less rows at a time. -- Philippe Poelvoorde COS Trading Ltd. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: Checking the status of a field, and ensuring it is not updated before I change it

2004-11-11 Thread SGreen
If your table is MyISAM you will have to lock the table so that no other process can access that row (or any other) while you do your check and update. http://dev.mysql.com/doc/mysql/en/LOCK_TABLES.html If your table is InnoDb you can still do the table lock or you can lock just the one row.

RE: Queries taking 60 seconds+

2004-11-11 Thread John Wards
On Thu, 2004-11-11 at 14:37, Andy Eastham wrote: Have you got a single multi-column index on countyid, price and old, or do you have individual indexes on each of these fields? The former would be much better. Its a single column on countyid, when I ran a select and just used countyid = in

Re: Queries taking 60 seconds+

2004-11-11 Thread John Smith
On Thu, 2004-11-11 at 14:36, Philippe Poelvoorde wrote: Hi, could you try adding a key with ALTER TABLE properties ADD INDEX(countyid,old,price); It could maybe help getting less rows at a time. I dropped the old and price for the where clause and the number of rows scanned were the same as

Re: Queries taking 60 seconds+

2004-11-11 Thread Victor Pendleton
If you build the composit indexes as suggested, does your performance improve? John Smith wrote: On Thu, 2004-11-11 at 13:58, Victor Pendleton wrote: What does the explain plan look like? id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE

Re: Queries taking 60 seconds+

2004-11-11 Thread John Smith
On Thu, 2004-11-11 at 14:59, Victor Pendleton wrote: If you build the composit indexes as suggested, does your performance improve? Erm, do you think it would? Its just that with such a large table and it being compressed it takes ages? -- MySQL General Mailing List For list archives:

Prepared statement for MySQL 4.1

2004-11-11 Thread Scott Hamm
I've read the article about 'prepared statement' found in MySQL 4.1, and am not sure if I understood what 'prepared statement' does and how can it benefit us. Can anyone elaborate on what 'prepared statement' could do with examples where possible? Thanks, The Newbie Scott -- MySQL General

Re: Queries taking 60 seconds+

2004-11-11 Thread Jigal van Hemert
From: John Smith [EMAIL PROTECTED] On Thu, 2004-11-11 at 14:36, Philippe Poelvoorde wrote: Hi, could you try adding a key with ALTER TABLE properties ADD INDEX(countyid,old,price); It could maybe help getting less rows at a time. I dropped the old and price for the where clause and

Re: Queries taking 60 seconds+

2004-11-11 Thread mos
At 07:52 AM 11/11/2004, you wrote: Afternoon All, The table is read only for most of the day and will get updated (once I get the queries down to an acceptable level) nightly...if that helps. Any suggestions or further tips would be very helpful as its taken me months to get my code to input the

Re: Queries taking 60 seconds+

2004-11-11 Thread John Wards
On Thu, 2004-11-11 at 15:45, Jigal van Hemert wrote: `price` is still in the ORDER BY, so removing it only from the WHERE clause will not help really. No the query I ran didn't have an order by clause (sorry if the one I pasted did..) - create an INDEX on the columns in the WHERE clause _and_

Re: Queries taking 60 seconds+

2004-11-11 Thread John Wards
On Thu, 2004-11-11 at 15:51, mos wrote: John, Create a second table (MyISAM) but this time don't use compression on the table. create table newtable select * from oldtable; Right will run that just now, good idea...just have to avoid the wife as no doubt it will bog the site

Help with query performance anomaly

2004-11-11 Thread Graham Cossey
Hi Can someone offer any advice on a strange problem I have at present... If I run a certain query (see below) on my local development PC using mysqlcc it returns in 3.7s. If I run the exact same query on my live webserver (again using mysqlcc) I have yet to get a result !! Both databases have

Re: Strange error in DELETE query

2004-11-11 Thread Michael Stassen
Jay Blanchard wrote: [snip] When I run the follow query: DELETE FROM table WHERE client_id = 1 AND row_id IN (2,5,7) only the first record is deleted. Am I doing something wrong or is it a MySQL bug? [/snip] It is not a bug, just say it out loud AND row_id is 2 OR 5 OR 7 Once the OR condition

Re: Help with query performance anomaly

2004-11-11 Thread SGreen
What does EXPLAIN show for the query on both systems? (I am wondering if you may have an index on your development system that you do not have on your production server.) Shawn Green Database Administrator Unimin Corporation - Spruce Pine Graham Cossey [EMAIL PROTECTED] wrote on 11/11/2004

Re: Strange error in DELETE query

2004-11-11 Thread Ronan Lucio
Jay, It is not a bug, just say it out loud AND row_id is 2 OR 5 OR 7 Once the OR condition is satisfied once, the query will halt. The problem is that if I use OR in the where clause, MySQL wont use the indexes in the row_id column. One important thing that I forgot to say is I run a

Re: Queries taking 60 seconds+

2004-11-11 Thread Stefan Kuhn
It is a property of Mysql that such a query will benefit greatly from a composite index. So I would not consider anything else without having tried this. Am Thursday 11 November 2004 16:29 schrieb John Smith: On Thu, 2004-11-11 at 14:59, Victor Pendleton wrote: If you build the composit

RE: Help with query performance anomaly

2004-11-11 Thread Graham Cossey
Thanks Shaun EXPLAIN shows the same 'possible keys' for each table but 'key' and 'key-len' columns are different, as are the 'rows' as well of course. I guess this points to a probable difference in key definitions? Can 2 installations with the same table definitions produce different results

Re: Strange error in DELETE query

2004-11-11 Thread Ronan Lucio
Michael, What are you talikng about? Queries don't halt on the first row matched. For example: It´s my thought, too. But it isn´t happen in my MySQL Server. Now, doing the same tests you did I got the same results of you. Well, I´ll inspect my code again looking for some error that I didn´t

RE: Simple Small Database

2004-11-11 Thread Chris W. Parker
John mailto:[EMAIL PROTECTED] on Wednesday, November 10, 2004 10:04 PM said: I want to make a small simple database that searches by state or zip code for jobs. I would enter just a job description, job position and job id #. so 3 fields display. I want to enter in the information by an

RE: Strange error in DELETE query

2004-11-11 Thread Paul DuBois
At 8:18 -0600 11/11/04, Jay Blanchard wrote: [snip] When I run the follow query: DELETE FROM table WHERE client_id = 1 AND row_id IN (2,5,7) only the first record is deleted. Am I doing something wrong or is it a MySQL bug? [/snip] It is not a bug, just say it out loud AND row_id is 2 OR 5 OR

RE: Help with query performance anomaly

2004-11-11 Thread SGreen
Check the results of SHOW CREATE TABLE for the three tables you use and compare between production and development. You should be able to spot any differences in your key definitions. If they are the same on both machines then you should probably run ANALYZE TABLE against the three tables on

Re: Queries taking 60 seconds+

2004-11-11 Thread John Wards
Right thanks for all the tips the 3 column index has done the job, queries coming back in 0.7 secconds now which is just the job before they get cached. Don't know how I missed that one as it was abovious...i even tried countyid and old...forgot about price.. John -- MySQL General Mailing

RE: Help with query performance anomaly

2004-11-11 Thread Graham Cossey
Thanks Shaun EXPLAIN shows the same 'possible keys' for each table but 'key' and 'key-len' columns are different, as are the 'rows' as well of course. I guess this points to a probable difference in key definitions? Can 2 installations with the same table definitions produce different

Re: mysqld segfaults.

2004-11-11 Thread Sasha Pachev
Fredrik Carlsson wrote: Hi, I have problem with my mysqld, when its receiving alot of connections and at the same time doing insert/delete/update/select on the same table mysqld segfaults and restarts 041108 0:59:08 Warning: Got signal 14 from thread 162602 Segmentation fault 041708 13:17:54

Help with report

2004-11-11 Thread Laercio Xisto Braga Cavalcanti
Hi all, I have the following select: select cons_nome as Consultorio, dent_nome as Dentista, pac_nome as Paciente, pac_convenio as Tipo, Pac_matricula as Matricula, concat(consulta_dia, /, consulta_mes, /, consulta_ano) as Data, concat(Consulta_hora, :,

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread John B. Ivski
Heikki, Heikki Tuuri wrote: InnoDB is clearly leaking 'segments' in the system tablespace. They are probably undo logs. For some reason, a trx commit or purge fails to free them. SEGMENT id 0 75994 space 0; page 82136; res 2720 used 2680; full ext 41 fragm pages 32; free extents 0; not full

Re: 4.1.7 serious problems

2004-11-11 Thread Sasha Pachev
I tested the memory and it seems ok. I doubt this is an hardware issue, since version 4.1.3 works perfectly. Ugo: Do the production and the test server run on the same hardware? Are you using the same mysqld binary on both? What I am suspecting is that the binary on the production system does has

RE: Help with query performance anomaly

2004-11-11 Thread SGreen
Response at end Graham Cossey [EMAIL PROTECTED] wrote on 11/11/2004 12:19:17 PM: Thanks Shaun EXPLAIN shows the same 'possible keys' for each table but 'key' and 'key-len' columns are different, as are the 'rows' as well of course. I guess this points to a probable difference in

Re: Strange error in DELETE query

2004-11-11 Thread Michael Stassen
Ronan Lucio wrote: snip The problem is that if I use OR in the where clause, MySQL won't use the indexes in the row_id column. Yes, it will, as long as the OR conditions are on the *same* column. WHERE row_id IN (2,5,7) and WHERE (row_id = 2 OR row_id = 5 OR row_id = 7) are equivalent. I

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Sasha Pachev
Heikki Tuuri wrote: Ivan, hmm... could it be that segments 0 1, 0 2, 0 3, etc. were printed close to the end of the output? The print routine first prints inode pages that are completely used, and after that other inode pages. Since the tablespace validation said the tablespace is ok, I guess

Re: Prepared statement for MySQL 4.1

2004-11-11 Thread Gleb Paharenko
Hello. As said at documentation: Prepared execution is an efficient way to execute a statement more than once. Good examples you can find in documentation to MySQL, and in tests/client_test.c. Scott Hamm [EMAIL PROTECTED] wrote: I've read the article about 'prepared statement' found in

Re: Prepared statement for MySQL 4.1

2004-11-11 Thread Mark Maunder
Scott, http://dev.mysql.com/tech-resources/articles/4.1/prepared-statements.html regards, Mark. On Thu, 2004-11-11 at 15:38, Scott Hamm wrote: I've read the article about 'prepared statement' found in MySQL 4.1, and am not sure if I understood what 'prepared statement' does and how can it

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread John B. Ivski
Heikki, Heikki Tuuri wrote: hmm... could it be that segments 0 1, 0 2, 0 3, etc. were printed close to the end of the output? The print routine first prints inode pages that are completely used, and after that other inode pages. Since the tablespace validation said the tablespace is ok, I guess

RE: Prepared statement for MySQL 4.1

2004-11-11 Thread Scott Hamm
*THAT* one was what I already ready and could not understand it since English isn't my first language. -Original Message- From: Mark Maunder [mailto:[EMAIL PROTECTED] Sent: Thursday, November 11, 2004 12:45 PM To: Scott Hamm Cc: 'Mysql ' (E-mail) Subject: Re: Prepared statement for MySQL

recover single table from binlog

2004-11-11 Thread walt
Does anyone know if there is a tool or a good way to recover a single table from the binlogs ? I tried for n in dev-bin.*; do mysqlbinlog $n |grep table_name /tmp/file.sql; done but it just gives me the first line of the insert/update statement. I guess you could dump all the bin files out

Fw: Strange error in DELETE query

2004-11-11 Thread Ronan Lucio
Hi, I think I found out what was wrong. ColfFusion has a tag CFQUERYPARAM that prevents SQL Injection. Probably CFQUERYPARAM was removing anything after comma. Without using CFQUERYPARAM the code works perfectly. So, I had to create a UDF to remove everything except digits and commas. Thanks

Re: 4.1.7 serious problems

2004-11-11 Thread Ugo Bellavance
Sasha Pachev wrote: I tested the memory and it seems ok. I doubt this is an hardware issue, since version 4.1.3 works perfectly. Ugo: Do the production and the test server run on the same hardware? One is a single Athlon XP, the other is a dual Athlon MP. Are you using the same mysqld binary on

Re: Prepared statement for MySQL 4.1

2004-11-11 Thread Fagyal Csongor
Scott, I've read the article about 'prepared statement' found in MySQL 4.1, and am not sure if I understood what 'prepared statement' does and how can it benefit us. Can anyone elaborate on what 'prepared statement' could do with examples where possible? In the simplest case, consider this:

RE: Help with query performance anomaly

2004-11-11 Thread Graham Cossey
[big snip] These are two different plans. Your development machine is using the index yr_mn_pc on the r table and is joining that table last. On your production server, the r table is joined second and is joined by the index PRIMARY. Let me know how the ANALYZE TABLE I suggested in a

RE: Prepared statement for MySQL 4.1

2004-11-11 Thread Kevin Cowley
Re speed benefits There aren't any - at least not through the C API. It's at least twice as slow as writing embedded statements and parsing every time. I'm waiting for them to announce they've fixed it before we consider this route again. Kevin Cowley RD Tel: 0118 902 9099 (direct line) Email:

Re: Help with query performance anomaly

2004-11-11 Thread Jamie Kinney
How do the OS statistics look on both boxes. Do top, sar, vmstat or iostat show any CPU, memory or I/O performance issues? Does anything odd appear in the /var/log/messages file? -Jamie On Thu, 11 Nov 2004 18:42:48 -, Graham Cossey [EMAIL PROTECTED] wrote: [big snip] These are

RE: RAID Question

2004-11-11 Thread Kirti S. Bajwa
Paul: Thank you for your response. Another question: Would it cause a problem if I configure --with-raid and then never use it in any programming? Will it add any overhead? It would help if this feature is available for future use. Thanks 2nd time. Kirti -Original Message- From: Paul

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Heikki Tuuri
Sasha, - Original Message - From: Sasha Pachev [EMAIL PROTECTED] Newsgroups: mailing.database.myodbc Sent: Thursday, November 11, 2004 8:05 PM Subject: Re: InnoDB data files keep growing with innodb_file_per_table Heikki Tuuri wrote: Ivan, hmm... could it be that segments 0 1, 0 2, 0 3,

Re: problem with distinct not solved by group by

2004-11-11 Thread Michael Stassen
You want the rows containing the maximum post_d for each movies_id group. As you've seen, this is tricky. Fortunately, the manual suggests three solutions to this problem http://dev.mysql.com/doc/mysql/en/example-Maximum-column-group-row.html. Michael Seth Leonard wrote: I have three tables:

Moving innodb from Linux to Windows

2004-11-11 Thread Boyd E. Hemphill
All: I am attempting to move a set of db's from Linux (Mysql 4.0.20) to Windows (4.1.6). I have everything running, and I can query tables that are all lower case. However I cannot issue a query on a table that contains uppercase letters. This is the my.ini file: [client] port=3306

Re: InnoDB data files keep growing with innodb_file_per_table

2004-11-11 Thread Heikki Tuuri
John, please zip ibdata1, which is 'only' 100 MB, and upload it when you have shut down mysqld. I have been simulating your workload, but I only get 25 segments. No leak seen. Regards, Heikki - Original Message - From: John B. Ivski [EMAIL PROTECTED] Newsgroups:

Which PHP for MySQL 4.1

2004-11-11 Thread C.F. Scheidecker Antunes
Hello, I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? I appreciate your thoughts. Thanks. -- MySQL General Mailing List For list

RE: Which PHP for MySQL 4.1

2004-11-11 Thread Jay Blanchard
[snip] I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? [/snip] PHP 4 is compatible with MySQL 4.1. My caution to you would be using

Re: Which PHP for MySQL 4.1

2004-11-11 Thread Curtis Maurand
Jay Blanchard wrote: [snip] I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? [/snip] PHP 4 is compatible with MySQL 4.1. My caution to

Re: Which PHP for MySQL 4.1

2004-11-11 Thread Ugo Bellavance
Jay Blanchard wrote: [snip] I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? [/snip] PHP 4 is compatible with MySQL 4.1. My caution to

Getting count() to include 0 counts in select - slow

2004-11-11 Thread Mark Worsdall
SELECT _objectives.id, _objectives.name, COUNT(go._iso._objective_id) FROM go._objectives INNER JOIN go._subjectHeadings         ON go._subjectHeadings.id = go._objectives.subjectHeadings_id INNER JOIN go._subjects         ON go._subjects.id = go._objectives.subjects_id LEFT JOIN go._iso        

Re: Which PHP for MySQL 4.1

2004-11-11 Thread OpenMacNews
Jay Blanchard wrote: [snip] I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? [/snip] fwiw, i build-from-source use a collection of:

RE: Help with query performance anomaly

2004-11-11 Thread Graham Cossey
Everything seems fine except for this one query. I'm not sure quite what the results of top will say or what they mean if it's a Virtual Private Server environment? Nothing untoward in /var/log/messages or var/log/httpd/error_log or virtual host httpd logs. Have just run 'top' on the live

RE: Which PHP for MySQL 4.1

2004-11-11 Thread Graham Cossey
[snip] of course, YMMV ... [snip] Sorry, YMMV? What does that mean? Is there a reference somewhere for all these acronyms? Thanks Graham -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Temporal values VS. int values

2004-11-11 Thread Jim Grill
Looking for some informed opinions... Which is faster for searching by date ranges? ...Times stored in date() columns - temporal values. ...Or dates stored as unix timestamps in an int(10) unsigned column - int values. Most of the queries will be searching for rows between certain data ranges

Re: Which PHP for MySQL 4.1

2004-11-11 Thread James E Hicks III
Graham Cossey wrote: Sorry, YMMV? What does that mean? Is there a reference somewhere for all these acronyms? Yes it's called Google. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Which PHP for MySQL 4.1 (mysgl-general: addressed to exclusive sender for this address)

2004-11-11 Thread OpenMacNews
Sorry, YMMV? What does that mean? YMMV = Your Mileage May Vary Is there a reference somewhere for all these acronyms? lots. google (internet acronyms) richard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

slow-query log

2004-11-11 Thread Jeffrey M. Johnson
I noticed something interesting with our slow-query log and am looking for an answer. Our slow-query log is set for to record anything over 7 seconds. In monitoring the server I ran the show full processlist I occasionally see entries like | ID | USER | HOST | DATABASE | Query |

RE: Which PHP for MySQL 4.1

2004-11-11 Thread Graham Cossey
[snip] Sorry, YMMV? What does that mean? Is there a reference somewhere for all these acronyms? Yes it's called Google. Yep, as soon as I posted I knew I should not have :) It's late and I'm getting lazy... -- MySQL General Mailing List For list archives:

query of two tables returns far too many rows, more than the two tables contain

2004-11-11 Thread Chip Wiegand
I have two tables I want to get out the rows that are different between them. The results I am getting is almost 50,000 rows, but the two tables, combined, contain only about 600 rows total. Here is the select statement - SELECT dealers.account_no, dealers.DealerName,

RE: Help with query performance anomaly

2004-11-11 Thread Graham Cossey
[snip] Have just run 'top' on the live server... Before running the query I get: 13:56:09 up 45 days, 11:47, 1 user, load average: 0.00, 0.28, 0.44 24 processes: 23 sleeping, 1 running, 0 zombie, 0 stopped CPU0 states: 0.0% user 0.0% system0.0% nice 0.0% iowait 100.0% idle

Re: Getting count() to include 0 counts in select - slow

2004-11-11 Thread SGreen
This will really speed things up: ALTER TABLE _ISO ADD KEY(_objective_id) If you do an EXPLAIN on your current query, you would see that no index is used for the _iso table so the engine has to do a table scan. And, for future reference, the output of SHOW CREATE TABLES is more informative

Re: query of two tables returns far too many rows, more than the two tables contain

2004-11-11 Thread SGreen
What happened is called a Cartesian product. You basically asked for a combination of every value from one table matched to every value from the other table. In your case you did have an except-type condition so you eliminated a few of the matches. Let me explain it this way: Imagine you have

mySQL 4.1.3-beta subqueries

2004-11-11 Thread L a n a
Hello, Since I had a problem with except operator and subqueries, I investigated a topic on mysql version capability. I tried a few examples which were offered on this mailing list, all of them gave me a syntax error, so I've read a manual and tried some examples from it. However, things that

Maximum row size for MyISAM table type

2004-11-11 Thread Joshua Beall
Hi All, I am a bit confused by the MySQL documentation on this subject. From http://dev.mysql.com/doc/mysql/en/Storage_requirements.html The maximum size of a row in a MyISAM table is 65,534 bytes. Each BLOB and TEXT column accounts for only five to nine bytes toward this size. So, the

Re: query of two tables returns far too many rows, more than the two tables contain

2004-11-11 Thread Chip Wiegand
[EMAIL PROTECTED] wrote on 11/11/2004 02:05:17 PM: snip What you want to do is to write a query that lists every record from the dealers table OPTIONALLY matched up to rows on the blackgate_users table wherever the names match. This is what the LEFT JOIN operator was invented to do (you

Re: SQL Syntax Problem

2004-11-11 Thread Ligaya Turmelle
Think I found it. I made the changes with explanations of what I did. If you have any further questions feel free to ask. Oh and this should be on the list for others to see and maybe learn from Respectfully, Ligaya Turmelle head[DATABASE CONNECTION]/head body div class=formdiv

scalability of MySQL - future plans?

2004-11-11 Thread Jacek Becla
Hello, What are the plans regarding improving scalability of MySQL? We are currently trying to decide what technology/product to use for a large project that will generate ~600TB/year starting in 2012. Any pointers to related articles or hints how safe is to assume that MySQL will be able to

Re: SQL Syntax Problem

2004-11-11 Thread David Blomstrom
--- Ligaya Turmelle [EMAIL PROTECTED] wrote: Think I found it. I made the changes with explanations of what I did. If you have any further questions feel free to ask. Oh and this should be on the list for others to see and maybe learn from Wow, thanks so much for going to all that

Re: Maximum row size for MyISAM table type

2004-11-11 Thread Chris
Joshua Beall wrote: Hi All, I am a bit confused by the MySQL documentation on this subject. From http://dev.mysql.com/doc/mysql/en/Storage_requirements.html The maximum size of a row in a MyISAM table is 65,534 bytes. Each BLOB and TEXT column accounts for only five to nine bytes toward this

mySQL 4.1.3-beta subqueries(correction on table names)

2004-11-11 Thread L a n a
Hello, Since I had a problem with except operator and subqueries, I investigated a topic on mysql version capability. I tried a few examples which were offered on this mailing list, all of them gave me a syntax error, so I've read a manual and tried some examples from it. However, things that