I am trying to fetch the hotels records from database.I used below query and it worked fine.
hotels = models.Hotel.objects.filter(wed=True, county=hotel.county.id)
But i want to fetch only first few records(eg:10) rather than fetching multiple records and want to reduce the execution time…. Is there way to that….
Any help will be great….
Thank you
see limiting querysets