Quote Originally Posted by gbaguma View Post
is there something am doing wrong
Maybe, but it very hard for us to say because we cannot see what you are doing.

What are the queries?
Using a QSqlsomethingModel or a bare QSqlQuery?
When you say "data to be returned" do you mean all columns of all rows returned by the query, or the first rows of data?
What are you doing with the rows returned? Displayed in a view or processed internally?
Are you sorting or filtering in code rather than at the server?