Files
percona-toolkit/t/pt-query-advisor/samples/group-by-none-001.txt
2011-06-24 16:02:05 -06:00

36 lines
1.2 KiB
Plaintext

# Query ID 0xADCE32553F5D5859 at byte 0
# WARN CLA.001 SELECT without WHERE.
# NOTE COL.001 SELECT *.
select * from tbl
# Query ID 0x63C84ABE631F3CD0 at byte 191
# Also: CLA.001 COL.001
select * from tbl order by a
# Query ID 0xB79802214165F670 at byte 297
# NOTE COL.002 Blind INSERT.
insert into tbl values (null, 1, 'foo')
# Query ID 0xEEA4D551871CCDC4 at byte 414
# Also: COL.002
replace into tbl2 values (1, '2', 'bar')
# Query ID 0x52BAD5F0BF97EA19 at byte 532
# WARN RES.001 Non-deterministic GROUP BY.
select a, b, c from x where id<1000 group by a, b
# Query ID 0x01BF72F436E936F1 at byte 659
# Also: RES.001
select x, y, z from foo where id>1000 group by x, y
# Profile
# Query ID NOTE WARN CRIT Item
# ================== ==== ==== ==== ==========================================
# 0x01BF72F436E936F1 0 1 0 select x, y, z from foo where id>? group by x, y
# 0x52BAD5F0BF97EA19 0 1 0 select a, b, c from x where id<? group by a, b
# 0x63C84ABE631F3CD0 1 1 0 select * from tbl order by a
# 0xADCE32553F5D5859 1 1 0 select * from tbl
# 0xB79802214165F670 1 0 0 insert into tbl values(?+)
# 0xEEA4D551871CCDC4 1 0 0 replace into tbl? values(?+)