Which backend are you using? If it's MySQL then chances are you are hitting a bug which has been fixed in head but after the latest release. Can you try the newest version from git and see if the problem persists? Or, just patch this:
http://soci.git.sourceforge.net/git/gitweb.cgi?p=soci/soci;a=patch;h=df346cbf2ff0cd377b0af615febdc0f696a2f377 Thanks! Aleksander 2010/3/10 Michał Nowotka <[email protected]>: > Hello, > I found something strange in rowset iterator behavior. Look at this > piece of code: > > /////////////////////////////////////////////////////////////////////////////////////////////////////////////// > > int counter = 0; > TupleRowset::const_iterator begin, end; > begin = result.begin(); > end = result.end(); > > for (TupleRowset::const_iterator tupleIt = begin; > tupleIt != end; ++tupleIt, ++counter) > { > if(!(counter % 1000)) > std::cout << "."; > std::cout.flush(); > } > > /////////////////////////////////////////////////////////////////////////////////////////////////////////////// > > Where: > > typedef unsigned int NodeId; > typedef unsigned int Pid; > typedef std::string Mask; > typedef int Type; > typedef int Positie; > typedef boost::optional<int> OptNodeId; > typedef boost::optional<int> OptPid; > typedef boost::optional<Mask> OptMask; > typedef boost::optional<Type> OptType; > typedef boost::optional<Positie> OptPositive; > typedef boost::tuple<OptNodeId, OptPid, OptMask, OptType, OptPositive> Tuple; > typedef soci::rowset<Tuple> TupleRowset; > > //////////////////////////////////////////////////////////////////////////////////////////////////////////////// > > The time between printing dots is not constant but increases. I don't > know why - it should be constant - can you help me? > > -- > Regards > > Michał Nowotka > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Soci-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/soci-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
