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 might not work properly #6
Comments
How are you querying that? No code, no help, sorry … also, transaction is a helper |
I'm just looking at the code, not really executing it. I mean the world "ROLLBACK" is not present anywhere in the repo, so this doesn't seem to be working properly. Feel free to close the issue if you like. |
I've limited time these days so if you find anything worth fixing please present a use case, some test to keep this module is 100% test covered, and we'll improve it. in this case it looks like commit is in but rollback is not, or maybe the rollback should happen if there's any error in the transaction, but now you have a pointer to the code responsible for transactions. |
I understand, I'm not really asking for anything here, just sharing some findings. Unfortunately this is all the info I can provide:
Btw looking at the benchmark our approach is like 10~100x slower than whatever better-sqlite3 is doing (at least on my computer, which runs macOS) 😱 |
It’s the second time you do this … I start seeing a pattern: you check other projects and you go out with your thing … this is not how projects grow so I think I’ll stop suggesting you my stuff as that’s not the kind of contribution I expect. |
P.S. in the Enterprise world you’d likely break intellectual property and copyright going this way, be careful out there 😉 |
P.S.2 my benchmark is different: persistent connection and no bind …. Bind is unfair so you’re not benchmarking apples vs apples |
about intellectual property: this is a rip-off of this module, it's like people copy/pasting from stack overflow pretending it was them writing the code. That part, among others, doesn't need an "inspired by" link in the README, that requires the copyright you took the code from, with your modifications. That's how MIT/ISC works: as long as you maintain the copyright you can do whatever you want. If you modify the original implementation you should still maintain the copyright. I am closing an eye this time but I will file a CR infringement complain the very next time I see this happening. Closing this as you never cared about contributing here, you just took my time to implement your thing violating copyrights. This attitude doesn't look good Fabio, please know better than this. |
Hey Andrea, I'm sorry, I didn't mean for this to happen. For the sake of clarification, hopefully:
Sorry again for the problems. |
Thanks for improving the situation, I appreciate that, yet I shouldn't have "warned" you were doing it wrong. This project comes after dblite which worked well for at least simple stuff for years, as new modern alternative. Creating yet another project and call it also tiny, as if my solutions are bloated or something, doesn't help you, doesn't help me, doesn't help this project, it's just code branched out here and there. I was going to share more insights on other possible solutions but now I've lost any interest because you have now your own thing which, like you said, it's basically my thing moved somewhere else because ... I don't really understand why. I am closing this conversation as this left me bitter taste in my mouth, I just hope you'll do better out there in the future. Take care 👋 |
I think transactions might not work properly here, unless I'm misreading the code what's happening is that basically something like the following is executing:
But say I'm executing the following:
The result of that is that 2 rows are inserted into the table, while I think what we actually want is something like: "did all the previous query execute successfully? If so we execute a "COMMIT" at the end, otherwise we execute a "ROLLBACK".
Like I wouldn't expect to see any rows in that table at the end of the transaction.
The text was updated successfully, but these errors were encountered: