Parallelize template compilation
Update query builder to support limit