One day I suspect I\'ll have to learn hadoop and transfer all this data to a non-structured database, but I\'m surprised to find the performance degrade so significantly in
Try putting an index on the venid column.
venid