Re: Does mysql cache strip out /* comments */ first?

2010-11-18 Thread Waynn Lue
Percona :o) > So I think its best someone else chips in. > > Ewen > >> >>> -Original Message- >>> From: Ewen Fortune [mailto:ewen.fort...@gmail.com] >>> Sent: Thursday, November 18, 2010 4:56 AM >>> To: Daevid Vincent >>> Cc

Re: Does mysql cache strip out /* comments */ first?

2010-11-18 Thread Ewen Fortune
November 18, 2010 4:56 AM >> To: Daevid Vincent >> Cc: mysql >> Subject: Re: Does mysql cache strip out /* comments */ first? >> >> Daevid, >> >> >> > My concern is, my gut tells me that the built in mysql >> cache system is >> > "

RE: Does mysql cache strip out /* comments */ first?

2010-11-18 Thread Daevid Vincent
quot; from it? > -Original Message- > From: Ewen Fortune [mailto:ewen.fort...@gmail.com] > Sent: Thursday, November 18, 2010 4:56 AM > To: Daevid Vincent > Cc: mysql > Subject: Re: Does mysql cache strip out /* comments */ first? > > Daevid, > > > > My conc

Re: Does mysql cache strip out /* comments */ first?

2010-11-18 Thread Ewen Fortune
Daevid, > My concern is, my gut tells me that the built in mysql cache system is > "dumb". And by that I mean, I suspect that mySQL isn't "smart" enough to > strip out comments from the SQL statement string BEFORE storing it as the > cache hash key (yet I h

Re: Does mysql cache strip out /* comments */ first?

2010-11-18 Thread Johan De Meersman
On Thu, Nov 18, 2010 at 9:00 AM, wrote: > I think you will probably find that the code you write isn't what MySQL > executes or stores in the cache. > it is indeed not quite what it executes, but as I understand it the QC index is *exactly* the string you send (well, hashed presumably), includin

RE: Does mysql cache strip out /* comments */ first?

2010-11-18 Thread andrew.2.moore
ncent Cc: mysql Subject: Re: Does mysql cache strip out /* comments */ first? Given that even spacing is important, it's a safe bet that it takes comments into consideration, too. Easily tested, though: grab one of the heaviest queries you have from your slowlog, and execute with ide

Re: Does mysql cache strip out /* comments */ first?

2010-11-17 Thread Johan De Meersman
... > > What I'd REALLY like to do is add more information in there. Perhaps add > the FUNCTION/METHOD and the logged-in web USER that is actually executing > that SQL, etc. > > My concern is, my gut tells me that the built in mysql cache system is > "dumb". An

Does mysql cache strip out /* comments */ first?

2010-11-17 Thread Daevid Vincent
USER that is actually executing that SQL, etc. My concern is, my gut tells me that the built in mysql cache system is "dumb". And by that I mean, I suspect that mySQL isn't "smart" enough to strip out comments from the SQL statement string BEFORE storing it as the cache hash

RE: Strip off leading and trailing spaces once in db?

2005-01-15 Thread Dave Merrill
UPDATE my_table SET my_column = TRIM(my_column), my_other_column = TRIM(my_other_column) etc... Dave Merrill > Is it possible to remove all trailing and leading spaces for selected > fields once the data has already been loaded? > > Steve -- MySQL General Mailing List For list archives: h

Strip off leading and trailing spaces once in db?

2005-01-14 Thread Steve Grosz
Is it possible to remove all trailing and leading spaces for selected fields once the data has already been loaded? Steve -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: RAID Strip size

2003-12-10 Thread Jeremy Zawodny
On Thu, Dec 04, 2003 at 10:33:17AM -0500, Brent Baisley wrote: > > Actually, you want to try to match the stripe size to your data size. > The ideal would be to have a stripe size equal to the size of a record > in your database. This way the disk needs only one read or write for > each database

Re: RAID Strip size

2003-12-04 Thread Brent Baisley
enetwork.com wrote: Greetings Mysqlians, Please comment on the validity of my logic: In setting the RAID(10/2disks) strip size everything I read says you must benchmark your particular system. Since that is not an option, my current logic is to have a large strip size (1024) with the reason

RAID Strip size

2003-12-03 Thread trevor%tribenetwork.com
Greetings Mysqlians, Please comment on the validity of my logic: In setting the RAID(10/2disks) strip size everything I read says you must benchmark your particular system. Since that is not an option, my current logic is to have a large strip size (1024) with the reasoning

Re: How to strip off email domain for sorting by domain?

2002-05-02 Thread Arjen Lentz
Hi, On Fri, 2002-05-03 at 02:43, Andrew Kuebler wrote: > I use Perl/DBI with MySQL and I'm trying to find a way to sort email > addresses by domain. I would assume there is probably an option in MySQL > to strip off the text after the '@' sign that will allow me

How to strip off email domain for sorting by domain?

2002-05-02 Thread Andrew Kuebler
I use Perl/DBI with MySQL and I'm trying to find a way to sort email addresses by domain. I would assume there is probably an option in MySQL to strip off the text after the '@' sign that will allow me to sort on. In Perl: @fields = split(/@/, $email); My domain would be displaye

Re: strip

2001-01-29 Thread Gerald L. Clark
Marcelo wrote: > > Can someone tell me how i can get(or > can someone send me) the strip command > for SCO Open Server 5.0.5? > > - > Before posting, please check: >http://www.mysql.com/

strip

2001-01-27 Thread Marcelo
Can someone tell me how i can get(or can someone send me) the strip command for SCO Open Server 5.0.5? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com

Re: comic strip SQL question: slow queries on left outer joins

2001-01-11 Thread Tomi Junnila
* Soren Ragsdale <[EMAIL PROTECTED]> wrote on 11.01.01 11:30: > SELECT comics.tagline,votes.score FROM comics,users LEFT OUTER JOIN > votes ON comics._rowid=votes.comic AND votes.voter=30 WHERE > users._rowid=comics.author; I would try the simpler inner join to get the result you want: SELECT co

comic strip SQL question: slow queries on left outer joins

2001-01-11 Thread Soren Ragsdale
Well, I run an online comic strip at http://www.monkeydyne.com/rmcs/ I've done so for three years now, and this is the first time I've been stumped enough to ask the mysql list for help. On the site, users can submit their own comics and they can vote on other people's