Create index automatically for poling dequeue query