Re: Problem with a Procedure

2007-11-25 Thread Tomas Hylander
Hi! I must say I cant see how this would help me. I know the tabels isnt empty since when running in query browsern I get a result. There must be something else thats wrong.. ...but thanks anyway! /Hylsan On Nov 23, 2007 4:43 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > Tomas- > > I would ef

RE: MyISAM vs InnoDB - Index choice and Huge performance difference

2007-11-25 Thread joe
U might want to try seting you index to calldate, disposition -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, November 25, 2007 10:03 PM To: Edoardo Serra Cc: mysql@lists.mysql.com Subject: Re: MyISAM vs InnoDB - Index choice and Huge performance differ

Re: MyISAM vs InnoDB - Index choice and Huge performance difference

2007-11-25 Thread ady . wicaksono
just want to take a note on 4Gbytes What kernel u use? 4Gbytes or bigger means nothing on your MySQL, because if your kernel is not compiled using correct patch or simply use CentOS/RHEL, then your MySQl will limited to use up to 2Gbytes only, so 4Gbytes --> 2Gbytes is useless On 11/25/07, E

Replication vs. mysql-table-sync

2007-11-25 Thread Michael Stearne
Is mysql-table-sync design to be used as a fix for when your replication is out of sync OR can it be used instead of replication? Thanks, Michael -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

MySQL 5.1.22 and Greek Language

2007-11-25 Thread Spiros Papadopoulos
Hi, I am having a problem with Greek character set in MySQL 5.1.22 in Windows XP where i am trying to have a column with greek and another one with english text in the same table. I am setting through the MySQL Query Browser tool the character set for each column and in Command Line to greek and

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread David T. Ashley
Hi Martin, The easiest way to restore context in this conversation is to go to the MySQL home page (www.mysql.com), then go to "Community", then "Lists", then to look at the archives of the main MySQL mailing list (this one). I believe at this point that Chris and Stut answered my question decisi

RE: Incrementing a "Private" Integer Space

2007-11-25 Thread Martin Gainty
Dave is trying to establish an algorithm which would fit your requirement I can see column q is auto-increment which makes sense as you retain the capability to generate a unique row but jumping into the middle of a conversation without knowing the prior discussionWhat is/was/will be the purpos

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Chris W
David T. Ashley wrote: Hi Chris, OK, I will try that. Thanks for the help. My assumption in reading your original post was that you didn't understand what I wanted to do (but you did). In order for me to use the solution you have proposed, in addition to working, this behavior would have to

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread David T. Ashley
On 11/25/07, Chris W <[EMAIL PROTECTED]> wrote: > > Stut wrote: > > > > insert into test1 set p = 2, q = (select max(q) + 1 from test1 as tmp > > where p = 2) > > > > Probably not very efficient, but it works. > > > > -Stut > > > Auto increment is much easier to do. If your primary key is made up

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Chris W
Stut wrote: insert into test1 set p = 2, q = (select max(q) + 1 from test1 as tmp where p = 2) Probably not very efficient, but it works. -Stut Auto increment is much easier to do. If your primary key is made up of two fields and one of them is Auto Increment, then it will have the desir

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Stut
David T. Ashley wrote: On 11/25/07, Stut <[EMAIL PROTECTED]> wrote: David T. Ashley wrote: I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most effici

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread David T. Ashley
On 11/25/07, Stut <[EMAIL PROTECTED]> wrote: > David T. Ashley wrote: > > I have a table with two integer fields (call them p and q). > > > > When I insert a record with a known p, I want to choose q to be one > larger > > than the largest q with that p. > > > > What is the best and most efficient

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Stut
David T. Ashley wrote: I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most efficient way to do this? For example, let's say the table contains (p,q): 1,

MyISAM vs InnoDB - Index choice and Huge performance difference

2007-11-25 Thread Edoardo Serra
Hi everybody, I have a MySQL database with MyISAM tables. As we're experiencing a lot of locking-related problems I decided to migrate to InnoDB. Our database is composed by a lot of small tables (1.000 - 10.000 rows) and a huge table containing 7.000.000 rows, this big table is a sor