silasmariner

joined 2 years ago
[–] silasmariner@programming.dev 1 points 2 days ago* (last edited 2 days ago) (1 children)

Lol what an absurd take. A transaction is a sequence of operations, not a single one, so even small tables can meet that threshold with enough query logic. I guess you're unfamiliar with medium to large datasets, but it's not uncommon to use the aggregate functions that SQL provides in real world situations, and on large tables that can easily reasonably exceed 1s. Toy my arse. Go play with yourself

Although this is no surprise tbh because apparently you don't understand why transactions are even necessary. Benchmarks shmenchmarks. Whether it works is more important.

I do not apologise for the downvote because this is smug shit only a junior would say

[–] silasmariner@programming.dev 1 points 5 days ago (3 children)

But adding it to an 80ms operation is. If your operation is 0.5ms it's either a read on a small table, or maybe a single write -- transaction isolation wouldn't even be relevant there. You're right that I did mean consistency rather that integrity though, slip of the terminology, but not really worth quibbling over. The point I meant was that I like my data to make sense, a funny quirk of mine.

[–] silasmariner@programming.dev 1 points 5 days ago* (last edited 5 days ago) (5 children)

Well it depends how much data integrity is worth to you, and how your system works. Every write in postgres is already a transaction - when you can get away with simple crud stuff, often there's nothing to do, you have transactionality already. Transaction isolation levels are where db operation costs might change under concurrent conflicting writes but you can tune that by ensuring single-writer-per-partition or whatever in your server logic and it might add a ms or two. OTOH if you have heavy contestation it can be much more expensive. The performance implications are complicated but can certainly kept to a fraction of overall cost depending on your workload!

In return they get an actually secure messing app they can use without having to support it themselves. Which is pretty big.

[–] silasmariner@programming.dev 1 points 6 days ago (7 children)

Restarts in a server between dB updates that in a sane world would be txns I meant (e.g update A, crash so don't update B). Anyway, in postgres they're pretty cheap in the absence of actual conflict -- more expensive if you have actual cinflicts, obvs.

Well you might also need to run some arcane incantation to remove quarantine bits, too. And it'll only work if it's actually been ported to the m-series chips, of course. And sometimes you just need to compile the whole god damn app yourself anyway. But sure, caveats side, you can run anything you want on macos that runs on macos. As long as you're not using a company-issued device and are forbidden.

Yeah but majoras mask earned that right

[–] silasmariner@programming.dev 5 points 6 days ago (9 children)

Actually transactions can be a secomd-layer safety-net for single-responsibility writers to ensure rollback on eg restarts and consistency on loadbalancer redecisions without having much of an impact on performance, and data integrity is usually quite important.

Because the fall of an empire holds deep almost mythic significance and we seek it.

But it won't work that way this time.

What's even cracrazier is knowing that with modernerer technology they have the same ethical assumptions as previously but with more targets and less precision!

Oh hey I do this in jwts too.

I need to encode a lot of permissions

Don't ask

I thought land of the free and home of the brave was Scotland

 

view more: next ›