MySQL Forums
Forum List  »  Connector/C++

Use mysql++, get a resultset with 10000 rows and iterate the resultset
Posted by: Ziqiang Chen
Date: July 08, 2014 01:13AM

I use mysql++, get a resultset and iterate it like this:

Query qr = conn->query(sql);
UseQueryResult res = qr.use();

while(Row row = res.fetch_row())
{
}

The resultset has 10000 rows,this "While" Loop took 3.5 seconds.
is this situation normal? I thought it should completed much faster!

Options: ReplyQuote


Subject
Views
Written By
Posted
Use mysql++, get a resultset with 10000 rows and iterate the resultset
2062
July 08, 2014 01:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.