Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transactions #18

Open
johnkea opened this issue Dec 3, 2015 · 1 comment
Open

Transactions #18

johnkea opened this issue Dec 3, 2015 · 1 comment

Comments

@johnkea
Copy link

johnkea commented Dec 3, 2015

Please, more control over transactions is required. Create is working too slow because of many transactions. The temporal solution in my case was commenting the following "dbExecQuery"s:

template<class C>
void Database::dbUpdate(bean_key key, C& bean)
{
    try{
//      dbExecQuery(key.con,"ROLLBACK TRANSACTION;");
    }catch(...){}
//  dbExecQuery(key.con,"BEGIN TRANSACTION;");

    ChildKiller ck;
    ck.killChildren(key,bean);
    BeanUpdater u;
    u.update(key, bean);

//  dbExecQuery(key.con,"COMMIT TRANSACTION;");
}

But thank you for the useful tool!

@MastaChimp
Copy link

I know it's been awhile, but do you have any results as to how this worked out? Did it cause any errors to comment out those lines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants