Class query limit

Signed-off-by: Dileep Mishra <Dileep.Mishra@kony.com>