Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. InnoDB not doing Index Merge
  2. CREATE TABLE values (
  3.     id int(10) auto_increment NOT NULL,
  4.     molecule_id int(5) NOT NULL,
  5.     descriptor_id int(5) NOT NULL,
  6.     T double DEFAULT NULL,
  7.     value double NOT NULL,
  8.     PRIMARY KEY (id),
  9.     KEY index1 (molecule_id, T),
  10.     KEY index2 (descriptor_id, T)
  11. ) ENGINE=InnoDB;
  12.        
  13. SELECT T, value FROM values WHERE molecule_id = X AND descriptor_id = Y