High-level transaction isolation architecture of InnoDB

2010-03-26 Thread Yang Zhang
hanks in advance. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

"Incorrect key file for table '...'; try to repair it" on Innodb table

2010-02-25 Thread Yang Zhang
rn up any clear answers. Any way to recover from this, or is mysqldump + load data the way to go? -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

EXPLAIN says DEPENDENT SUBQUERY despite no free variables

2010-02-24 Thread Yang Zhang
| NULL| NULL | 335790898 | 100.00 | Using where; Using temporary | +++-+--+---+--+-+--+---+--+------+ 2 rows in set, 1 warning (0.04 sec) -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Garbage collecting/trimming ibdata1

2010-02-23 Thread Yang Zhang
dropped). How do I reclaim my disk space? Thanks in advance. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Duplicate entries despite group by

2010-02-20 Thread Yang Zhang
sing mysql-5.4.3; is this a beta bug/anyone else happen to know something about this? Thanks in advance. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Dumping table contents to stdout in tab-separated value format

2010-02-20 Thread Yang Zhang
e and "select * into outfile '/tmp/pipe'", but mysql complains about the file existing already. Is there any other quick way to do this without having to write a client app? Thanks in advance. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list a

auto_increment weirdness

2010-02-17 Thread Yang Zhang
(b) select b from y; show create table x; This will show auto_increment = 32768 instead of 3. Is this a bug introduced in the beta? Has it been fixed in newer releases? Couldn't find a mention in the bug database. Thanks in advance. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL Genera

Complex SQL optimization vs. general-purpose language

2010-02-03 Thread Yang Zhang
rint weight, ids weight = 0 ids = [] _txn = None if _txn != txn: saw_upd = False if qt == 'update' and not saw_upd: weight += 1 saw_upd = True ids += [id] Is it possible to achieve the Python single-pass performance using pure SQL? Thanks in

Subquery scoping

2010-02-03 Thread Yang Zhang
; I'm not sure if this creates an additional unnecessary join, though -- trying to make sense of the output of EXPLAIN has been a separate exercise in frustration all to itself (even with mk-visual-explain). Thanks in advance for any answers. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL

Re: auto_increment without primary key in innodb?

2010-01-25 Thread Yang Zhang
an AUTO_INCREMENT column that > contains 0." > > -Original Message- > From: "Yang Zhang" > Sent: Monday, January 25, 2010 10:21am > To: mysql@lists.mysql.com > Subject: auto_increment without primary key in innodb? > > In innodb, is it possible

auto_increment without primary key in innodb?

2010-01-25 Thread Yang Zhang
a key -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

MySQL InnoDB memory performance tuning

2010-01-10 Thread Yang Zhang
ue to buffer page flushes. OTOH, it may be possible that the DB is already entirely in memory, and the performance difference is due entirely to mysql runtime overheads. Either way, explanations/hints would be much appreciated. Thanks in advance. -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL Ge

Can't initialize mysqld data dir

2009-12-13 Thread Yang Zhang
13 14:04:19 [Note] mysql//bin/mysqld: ready for connections. Version: '5.4.3-beta' socket: '/tmp/mysql.sock' port: 3307 MySQL Community Server (GPL) $ mysql//bin/mysql -u root mysql -e 'show tables;' -- Yang Zhang http://www.mit.edu/~y_z/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org