几天来,我一直在试图弄清楚为什么查询这么慢。我有很大的表,不是很大的~70,000条记录,我只在2个字段上进行搜索,我建立了索引,查询需要几分钟。SELECT table3_id, email from table1 GROUP BY ID;
按用户选择扩展查询...但这是主要的搜索-这是缓慢的,当扩大搜索甚至更糟糕。
我在我的MySQL数据库中使用以下表格:-- Table structure for table `company`SELECT data.elementname, data.elementvalue, company.name2 FROM dataWHERE filing.cik IN ('cik1', 'cik2',