[odb-users] memory leak

黄川 buptstehc at gmail.com
Tue Jan 14 01:54:04 EST 2014


Hi,all! when i test inserting data multiple times , the handles occupied by
my program is increasing from process manager in windows, my code is as
follows:

odb::transaction t (db_->begin());
db_->persist(m);
db_->execute(sql);
t.commit();

since every time when i insert a new data, i will create a new transaction t,
i want to know whether i can create this once and reuse over and over
again?thanks!


More information about the odb-users mailing list