[Compass-ci] [PATCH compass-ci 4/4] web_backend.rb: optimize the way of query data for compare