Re: MyISAM vs InnoDB

2006-11-01 Thread Edward Macnaghten

Francis wrote:

Question about MyISAM vs InnoDB ? What is the best to use, I have 
a large table contain around 10  millons of records. What is the best 
for me ? Use MyISAM or InnoDB ?
 



Depends VERY much on your application.  If any concurrency and/or 
durability is required then I would forget about MyISAM, as this is not 
ACID and integrity of the data is at risk.  In fact, if the application 
is suitable for MyISAM and database could be embedded (runs on same 
machine as application) then I would probably consider SQLite as that is 
even faster.


If concurrency and scaleability is required then I would go PostgreSQL 
rather tham MySQL, expecially if a large number of heavy users are on at 
the same time.


For a web-based solution on a machine with a single processor/core then 
InnoDB is a strong contender.


Eddy

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: MyISAM vs InnoDB

2006-11-01 Thread Edward Macnaghten

Francis wrote:

Question about MyISAM vs InnoDB ? What is the best to use, I have 
a large table contain around 10  millons of records. What is the best 
for me ? Use MyISAM or InnoDB ?
 



Depends VERY much on your application.  If any concurrency and/or 
durability is required then I would forget about MyISAM, as this is not 
ACID and integrity of the data is at risk.  In fact, if the application 
is suitable for MyISAM and database could be embedded (runs on same 
machine as application) then I would probably consider SQLite as that is 
even faster.


If concurrency and scaleability is required then I would go PostgreSQL 
rather tham MySQL, expecially if a large number of heavy users are on at 
the same time.


For a web-based solution on a machine with a single processor/core then 
InnoDB is a strong contender.


Eddy

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: SUM in WHERE

2006-09-18 Thread Edward Macnaghten

Ahmad Al-Twaijiry wrote:


Hi everyone


snip


SELECT * FROM tbl_name WHERE SUM(Total)=100 ORDER BY ID




SELECT ID  FROM tbl_name GROUP BY ID HAVING SUM(Total)=100 ORDER BY ID

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: ANNOUNCE: ShellSQL 0.7

2005-01-31 Thread Edward Macnaghten
Forgive me replying to my own post
There is a bug in the MySQL engine of this suite (shmysql).  This has 
been fixed in ShellSQL-0.7.1 at the below mentioned places.  If you have 
downloaded 0.7 you should download 0.7.1 and re-install (only shmysql is 
effected here, all the other programs are the same).

Thanks for your patience
Eddy
Edward Macnaghten wrote:
Hi
Announcing ShellSQL 0.7 to an unsuspecting world...
ShellSQL is a utility to allow SQL to be intergrated easily into 
UNIX/LINUX shell scripts.

The web page is at http://www.edlsystems.com/shellsql - and at 
sourceforge at http://sourceforge.net/projects/shellsql .

Version 0.7 includes many bug fixes and tidy ups.  A new utility to
import a file into a table (or use it to update tables), more 
input/output formats (CSV, Tab delimited etc) and a new engine (freetds 
for MS-SQL/Sybase engines) - (The MySQL engine was one of the originals 
there).

Enjoy
Eddy Macnaghten


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: bash powered MySQL Queries

2005-01-31 Thread Edward Macnaghten
Forgive me for blowing my own trumpet here.
The advantage with ShellSQL over this method is
1 - The output is not cluttered with headers, and a means exist to 
easily separate fields when there is more than one column or row in the 
query.

2 - The connection is persistant, whereas running mysql for each 
command will open and close a connection with all the overhead that 
comes with that.  ShellSQL also enables you to do transactions begin 
and commit at the beginning and end of the script.

Eddy

andy thomas wrote:
On Sun, 30 Jan 2005, Andy wrote:

Hi all
I just wanted to know what would be the easiest way to retrieve simple data
from a MySQL database from a bash script.

I do this a lot - just construct the query and dump it into a file from
within the script, eg:
echo select * from widgets where colour = 'red';  /tmp/query
Then pipe the query into the mysql command line client and the result is
echoed to stdin:
$RESULT=`mysql -u user -ppassword widget_sales  /tmp/query`
and the variable $RESULT contains the result of your query.
Andy


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


ANNOUNCE: ShellSQL 0.7

2005-01-30 Thread Edward Macnaghten
Hi
Announcing ShellSQL 0.7 to an unsuspecting world...
ShellSQL is a utility to allow SQL to be intergrated easily into 
UNIX/LINUX shell scripts.

The web page is at http://www.edlsystems.com/shellsql - and at 
sourceforge at http://sourceforge.net/projects/shellsql .

Version 0.7 includes many bug fixes and tidy ups.  A new utility to
import a file into a table (or use it to update tables), more 
input/output formats (CSV, Tab delimited etc) and a new engine (freetds 
for MS-SQL/Sybase engines) - (The MySQL engine was one of the originals 
there).

Enjoy
Eddy Macnaghten
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: bash powered MySQL Queries

2005-01-30 Thread Edward Macnaghten
Funny you should mention that
May I guide you to my recent announcment of ShellSQL 0.7 - web page at 
http://www.edlsystems.com/shellsql - a utility to do just as you want (I 
think) released under GPL.

It must be good - I wrote it myself :-)
Yours
Eddy
Andy wrote:
Hi all
I just wanted to know what would be the easiest way to retrieve simple data 
from a MySQL database from a bash script.

With kind regards

Andy


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]