Skip to main content
-3 votes
0 answers
43 views

We maintain multiple counters where each incoming request increments or decrements one or more counters. These counters are bounded by a max value, once that is reached, we reject the requests. ...
tusharRawat's user avatar
0 votes
1 answer
64 views

Does PostgreSQL read committed isolation level guarantee 2 transactions: subtract 3 and subtract 5 together always result 10 - 8 = 2 ? i.e. PostgreSQL Origin_value = 10 1 Tr = 1) read Origin_value 2) ...
J.J. Beam's user avatar
  • 3,193
Best practices
0 votes
4 replies
139 views

In SQL Server, I have a stored procedure that returns some sensitive data to the client, and logs that fact into a log table. The stored procedure is executed in a transaction controlled by the client,...
Branko Dimitrijevic's user avatar
0 votes
0 answers
56 views

Per all documentation I can find for the MSDTC tracing feature, selecting "Trace All Transactions" should provide a trace file that can be formatted and read. I have tried for several days ...
mfro's user avatar
  • 1
0 votes
0 answers
49 views

I am new to MikroORM and having trouble using @Transactional decorator. Below is my code. Model: import { Entity, PrimaryKey, Property } from '@mikro-orm/core'; import { ObjectId } from 'mongodb'; @...
Rajeev's user avatar
  • 11
1 vote
1 answer
122 views

Is it possible to lost increment here? If not, is it possible in case of read_commited level? @Transactional public updateProductStatistics(Long productId) { ProductStats stats = ...
J.J. Beam's user avatar
  • 3,193
Best practices
0 votes
0 replies
57 views

I am going to try to implement such thing and thinking about the best practice. Of caurse I know about some patterns like SAGA with transaction outbox but I never used it in practice. Is there any ...
tidik's user avatar
  • 21
1 vote
0 answers
49 views

I'm trying to learn more about Service Oriented Architecture as to me, it seems like a good middle ground between monolithic and micro service applications. Please correct me if I'm wrong but the ...
RogueGingerz's user avatar
1 vote
1 answer
61 views

I'm working with MongoDB transactions (Node.js, replica set). Inside a transaction, I update a document in a way that changes the value of a field that is covered by an index. Later in the same ...
Bear Bile Farming is Torture's user avatar
Best practices
0 votes
7 replies
109 views

I have a PHP + MySQL project where I need to generate sequential transaction IDs. Each transaction can have multiple items, so all rows for that transaction must share the same txn_in value. Tables ...
Developer Account's user avatar
1 vote
2 answers
128 views

How does create or replace function in PostgreSQL 14 behave with respect to transactions? If there are multiple concurrent transactions running at read committed isolation level, and trying to create ...
Aliaksei's user avatar
  • 1,038
0 votes
1 answer
57 views

Why does the PostgreSQL run_maintenance_proc need pg_try_advisory_lock? Can I remove that? It keeps creating table deadlocks. Its probably because I am also using dbt to generate a few materialized ...
carfield's user avatar
  • 2,091
Advice
0 votes
3 replies
65 views

I'm experimenting with DB2 isolation levels. I've installed DB2 12.1.1 for Linux on Ubuntu 22.04 and created a user & instance. Now I'd like to open two sessions and step-by-step type SQL commands,...
Paul A Jungwirth's user avatar
2 votes
1 answer
84 views

In Golang, database/sql package, there is a constant such as LevelWriteCommitted for the IsolationLevel type https://pkg.go.dev/database/sql#IsolationLevel What is the purpose of this level? There is ...
Alexandr Ch's user avatar
2 votes
1 answer
96 views

Why I need to use atomic() when I have only 1 db operation inside atomic block? My AI-assistant tells me that it prevents race conditions, but I don't use select_for_update() inside. It tells that db ...
Alex's user avatar
  • 66

15 30 50 per page
1
2 3 4 5
1140