benchmarked a sql implementation...it's slow