News for hackers. Stuff that matters.
Re:SQLite Is Serverless by sidewndr46 on Sunday January 26, 2020 @09:14AM (#22152150)
MS Access "allowed" it. SQLite actually works.
Re:SQLite Is Serverless by tenant on Sunday January 26, 2020 @09:20AM (#22152173)
Access is actually designed to work in a multiuser situation over a LAN for concurrent read and write. SQLite isn't afaik. As long as the LAN was cabled I never saw any issues. The only reason it was necessary to move to a server type database was because people were insisting on wifi networking.
Re:SQLite Is Serverless by paulie_a on Sunday January 26, 2020 @10:20AM (#22152429)
It might have been designed for it. It was poorly designed for it. It was a clustfuck of corruption when actually utilized
Re:SQLite Is Serverless by slfnflctd on Sunday January 26, 2020 @10:34AM (#22152509)
You basically had to engineer around the corruption risks for anything actually in production. Data redundancy, old-school 'Save' buttons (your work isn't properly saved until you click it, because it sends copies of that work to multiple backends) and isolating users as much as possible to their own 'shards' was part of how I saw it kludged through in the real world.

There was still a lot of weird behavior, though, and while you could reduce data loss you couldn't eliminate it.

Re:SQLite Is Serverless by paulie_a on Sunday January 26, 2020 @11:41AM (#22152974)
Penny wise pound foolish. I had a president waste two to three hours a day instead of using a 40 dollar service to take care of the incredibly simple and repetitive task. Eventually when I was planning to leave anyways I asked him what his time was with per hour. I guess it was less than minimum wage at the time. (5.25 an hour)

I'm probably going to have nightmares filled with screens of the access database corruption dialogs

Re:SQLite Is Serverless by tenant on Sunday January 26, 2020 @03:09PM (#22154405)
What's anyone's time worth? Might have kept him from doing something foolish.
Re:SQLite Is Serverless by paulie_a on Sunday January 26, 2020 @04:04PM (#22154782)
Valid point. He did defraud the federal government for 600k. If he had more time on his calendar he could have fucked over the American taxpayers ever more.
Re:SQLite Is Serverless by tenant on Sunday January 26, 2020 @02:44PM (#22154245)
It depended. It suited a small cabled office with 10 to 15 computers fine. I saw such setups work fine for 12 years without corruption. But when wifi came along people started connecting that way, sometimes unintentionally, and corruption became an issue. So then we bit the bullet and moved the backend to a server database. Not a single database corruption since.
Re:SQLite Is Serverless by afiori on Sunday January 26, 2020 @03:39PM (#22154632)
But this is the difference between supporting concurrent access or not. The fact that the feature relied so much on network reliability means that race conditions still existed.
Re:SQLite Is Serverless by tenant on Monday January 27, 2020 @02:56PM (#22163134)
I'm not arguing with you but the fact remains that unlike SQLite, Access doesn't lock the database file so that only one user can write at a particular moment, it's more granular than that. It's also the fact that this worked very well for databases on small cabled LANs where no more than a dozen-ish computers might be interacting with the database at any one time. It was never designed for use over the internet (having said which I have maintained a forum running an Access mdb file as its backend since forever without a hitch the forum software process does the database edits so it's like a database server process in a way I suppose).
Re:SQLite Is Serverless by klez on Sunday January 26, 2020 @09:29AM (#22152211)
I'm not sure I understand what the physical transport has to do with this. Can you please expand a bit?
Re:SQLite Is Serverless by wolf550e on Sunday January 26, 2020 @09:34AM (#22152225)
Maybe disconnect and reconnect cause windows network share to lose locks or something like that.
Re:SQLite Is Serverless by tenant on Sunday January 26, 2020 @10:11AM (#22152389)
Yes, for Access (and sqlite?) it is the client computers that do the edits directly to the database file, rather than via a mediating server side process, so they are particularly vulnerable to network interruptions while in the middle of an edit. Cable is far more reliable than wifi and so far fewer interruptions. I think that's it.
Re:SQLite Is Serverless by makapuf on Sunday January 26, 2020 @03:19PM (#22154469)
Ok but you cant really say you support network access if you rely on it to be flawless. Working fast, maybe but not reliably working if your network is not super reliable is not really support.
Re:SQLite Is Serverless by tenant on Sunday January 26, 2020 @03:38PM (#22154624)
It was a different time.
Re:SQLite Is Serverless by aksss on Monday January 27, 2020 @03:35AM (#22157748)
Back in the day, which was a Wednesday
Re:SQLite Is Serverless by im3w1l on Sunday January 26, 2020 @10:01AM (#22152348)
Race conditions not triggering when the transport is fast enough?
Re:SQLite Is Serverless by pklee on Sunday January 26, 2020 @09:16AM (#22152159)
I understand the distinction now :), thank you. Funny.