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

why it so slow? #349

Open
andrewvlgafc opened this issue Nov 29, 2024 · 0 comments
Open

why it so slow? #349

andrewvlgafc opened this issue Nov 29, 2024 · 0 comments

Comments

@andrewvlgafc
Copy link

Hello.

Why this code is so slow?

MyCommit(tr) {

    return new Promise(function (resolve: any, reject: any) {
        var start1 = performance.now()
        tr.commit(function (err: any) {
            var end = performance.now()
            console.log('commitTransaction!!!!!!!!!!!!!',end - start1);	
            resolse()
       }
   }

}

console log say 235 ms !

in statement i have 25 not indexed reads and 4 indexed reads and 3 inserts

Thanks

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

1 participant