Details
Description
some queries on sample table cause server hang:
Command | Time | State | Info Query | 1597 | Sending data | SELECT count(h.id)
with 0 disk activity
hanging query:
27 Query SELECT count(h.id) FROM wp_bp_album_hash h where h.id!=8164 AND h.hashv !='' AND huffman_dist(h.hashv,'00BB0000 00000000 00BB9C80 00000000 00C09BF9 00000000 CCC00C04 000000CC DC4C0000 00000CCD FFDDCC0C 00CCCFFB DDFFDC40 00CFFFFD FFF3FFCC DDFDCCDD FFFFDD0C 0CCCCDDF CCCCC4CC 0C0DDDDD CCCC40C0 0000CCCC DCFFF400 0000C04C DCDDC000 00000CDD DD040000 0000CCCD C0000000 00000000 00000000 00000000')< 400
while next query works fine (in 2.941s):
27 Query SELECT count(h.id) FROM wp_bp_album_hash h where h.id!=8164 AND h.hashk !='' AND huffman_dist(h.hashk,'00990000 00000000 00F99910 00000000 00009999 00000000 00000005 00000000 D4540000 0000004C FD444000 00044DFF CCDDC400 004D9DDC DFFFFF40 D99C444C FDDDCD00 000044CF 44444000 0009DC44 44400000 00000046 C4999400 00000044 D1DD4000 00000DDD 59000000 0000055D 00000000 00000000 00000000 00000000')< 390
huffman_dist - small UDF which calculates "BIT_COUNT( a ^ b )' word-by-word for LONG hashes (I can attach compiled one)
table in attachment
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Hi,
Yes, please attach the function. Can you (also) attach the source code?