[api] speed up searches with large result

let mysql unify results, not ruby.