Re: "optemizer" for mySQL!

2006-05-15 Thread Alexey Polyakov
> > > > > > > > > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Tuning a Server with >10,000 databases

2006-05-08 Thread Alexey Polyakov
but cuts down a show databases on a server with 60.000 databases from 15 seconds to 0.14 seconds which is ok. Same here - my database names start with username+underscore, so query now takes 0.05 instead of 6 secs (I have about 15000 DBs). -- Alexey Polyakov -- MySQL General Mailing List Fo

Re: Tuning a Server with >10,000 databases

2006-05-06 Thread Alexey Polyakov
s standard user > > + observed file system activity. > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- MySQL General Mailing List For list archives: http://lists.mys

Re: Optimising for many rows and returned records (de-coupling query time to record set size for range queries)

2006-04-23 Thread Alexey Polyakov
between number of records and query time where the records I am > selecting are within a small range? For studying select query performance issues it's better think about index as simply about a sorted array with random-access, where each random access costs O(lgN) and accesses to adjanced data

Re: Execution time of "show databases" increases when fewer databasesare visible

2006-04-21 Thread Alexey Polyakov
se in question, then I think that check_grant_db I mentioned in previous email may be safely hacked away. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Execution time of "show databases" increases when fewer databasesare visible

2006-04-21 Thread Alexey Polyakov
_db(thd, file_name))) If a query runs faster when user has access to more DBs, then the problem most likely lies within check_grant_db function. But it all needs more careful investigation. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubsc

Re: newbie optimization question

2006-04-20 Thread Alexey Polyakov
ERE fullname LIKE "j%" AND user_id=1 >ORDER BY fullname LIMIT 10; Probably because the engine is not using (fullname) index for this query - optimizer sees 'const' ref for user_id, retrieves all rows that have user_id=1 and then filters/sorts them all. -- Alexey Po

Re: Insert speed on table with 7M rows but small row size.

2006-04-08 Thread Alexey Polyakov
tioning. MySQL 5.1 will have built-in partitioning support, but the idea itself is very simple, and you can achieve the same effect by manually spreading data among tables. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://l

Re: Tuning a Server with >10,000 databases

2006-04-01 Thread Alexey Polyakov
found out that dir_index on ext3 doesn't help at all, it actually harms performance. 'noatime' and 'nodiratime' options do help a little. Also, 14000 subdirectories is not something that will cause 15 seconds delay - those 14000 subdirectories will always live in OS dentry cac

Re: Tuning a Server with >10,000 databases

2006-04-01 Thread Alexey Polyakov
x27;ve read, and the sample my-*.cnf files that ship > with the tarball appear to apply to the more typical installation of a > single huge database rather than thousands of individual dbs. Can > anyone offer any suggestions? > > Thanks, > > Gary Huntress > > > -- > M

Re: Avoiding disk writes during CREATE TEMPORARY

2006-02-20 Thread Alexey Polyakov
r list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MSSQL-MySQL Compatibility Question

2005-10-27 Thread Alexey Polyakov
Yeah, it's perfectly ok to run both on the same machine at the same time, though with MS SQL you're limited to Microsoft OS. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: how to increase query speed ?

2005-10-25 Thread Alexey Polyakov
Adding compound (hash, years) index (or even better unique index if it fits in your business logic) in both tables should speed up things. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Should I buy commercial license?

2005-10-23 Thread Alexey Polyakov
mercial license). -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Memory tables and INNODB have different query plans for GROUP BY with btree?

2005-10-04 Thread Alexey Polyakov
Oops, I was obviously wrong about your example, please ignore it. :) -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Memory tables and INNODB have different query plans for GROUP BY with btree?

2005-10-04 Thread Alexey Polyakov
mysql.com/doc/mysql/en/loose-index-scan.html > > To get decent GROUP BY performance. Is this a bug? Is there a > workaround? > > Kevin A. Burton, Location - San Francisco, CA > AIM/YIM - sfburtonator, Web - http://www.feedblog.org/ > GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 > > > > -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: config diff: query time went from 70 mins to 20 seconds

2005-10-01 Thread Alexey Polyakov
dditional_mem_pool_size and innodb_log_buffer_size, cause those are allocated only once, and looks like you have enough memory for bigger values. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Creating HUGE reports

2005-09-25 Thread Alexey Polyakov
card records for every > category used (one or various)? > > Thanks for any comment. > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: bind (listen) question

2005-09-21 Thread Alexey Polyakov
Theres --bind-address mysqld startup option, but I'm afraid it allows specifying only one IP to bind to. One of workarounds for your problem is to make it listening on all IPs, but configure firewall to drop all TCP packets going to port 3306 not on IPs you want. -- Alexey Polyakov --

Re: Charset problems (utf-8 -> latin1)

2005-09-21 Thread Alexey Polyakov
tables), and import this dump into second database. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Charset problems (utf-8 -> latin1)

2005-09-21 Thread Alexey Polyakov
from db server. One way to do this is to issue 'SET NAMES latin1' query after establishing a connection. There are also some ways to set this as global option for all websites if you can't modify scripts. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://l

Re: Bad MySQL performance with LEFT JOINS in combination with BIGINT(16)Keys

2005-09-21 Thread Alexey Polyakov
oes a scan of second table, which is performance killer. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Blew MySQL away by accident

2005-09-04 Thread Alexey Polyakov
> However, I am trying to move my RH 9 system to Centos 4.1 and > everything has gone well until I though I could just copy the mysql db > into the new server. You can. Just make sure you add old-passwords option to your my.cnf file. -- Alexey Polyakov -- MySQL General Mailing List

Re: switching from varchar to tinytext

2005-09-04 Thread Alexey Polyakov
Bytes IIRC. Depending on actual content it can be 127-255 characters. Why do you choose to convert varchar to tinytext? Doesn't look like good idea to me. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysq

Re: query-log.html

2005-09-03 Thread Alexey Polyakov
hink it is due to an unexpected > config-file option Add log=OFF line to your my.cnf. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Slow Queries Log and Index-less queries

2005-08-30 Thread Alexey Polyakov
in the slow query log beause it > uses an index...) It won't be logged if it actually will use index. In your example it won't use index, full table scan will be used instead, because query optimizer is able to determine that all records match where condition. > -- > Alexey Polyakov

Re: Index update process 20+ hrs

2005-08-29 Thread Alexey Polyakov
I'd try setting innodb_buffer_pool_size=8G in my.cnf -- Alexey Polyakov

Re: Key Buffer Size

2005-08-28 Thread Alexey Polyakov
Yeah, it's safe. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: query

2005-08-16 Thread Alexey Polyakov
> > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: A little help with mysql's "Query Cache" configuration

2005-08-14 Thread Alexey Polyakov
Variable_name | Value | > +---+-+ > | query_cache_limit | 5242880 | > | query_cache_size | 3145728 | > | query_cache_type | ON | > +---+-+ > 3 rows in set (0.00 sec) > > > Thank you. > > -- > Cheers, > Maxim Vexler (hq4ev

Re: best practices for finding duplicate chunks

2005-08-14 Thread Alexey Polyakov
you think? Processing cycles I have > but easy disk space I don't. -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Replication, charset / collations Problem

2005-08-09 Thread Alexey Polyakov
tions are not set explicitly in my.cnf, server could be using ones specified during compilation. To check charsets and collations on the running server do: show global variables like 'c%'; -- Alexey Polyakov -- MySQL General Mailing List For list archives: http://lists.mysql.com/my