Text this: A scalable machine learning strategy for resource allocation in database