既然  数据近亿
应该不会 select id from table 
而是  select id from table where ...提高速度的关键是 ... 的部分
根据...的内容建立合适的索引应该是第一步要做的