Questions tagged [acid]

Guaranteed properties of many database systems - This is an acronym for Atomicity, Consistency, Isolation, Durability.

ACID (atomicity, consistency, isolation, durability) is a set of properties that guarantees that database transactions are processed reliably. This means that a database server that is ACID compliant can guarantee that it has not violated any constraints, even when a transaction fails to complete.

Most SQL-based systems are intended to be ACID-compliant. NoSQL systems, however, typically do not guarantee this. (They are usually attempting for This database terminology makes assurances about the data state which are BASE (Basically Available, Soft state, Eventual consistency).

  1. Atomicity : (All at Once) A transaction is completely executed, or if a part of the transaction fails, no changes are made.

  2. Consistency : (Never Breaks Rules) At no point is the database violating any of the constraints that exist in the system. This means that the system cannot implement constraints to occur after the data is written - it must guarantee that the current database state is always allowed.

  3. Isolation : (One at a time) If two database operations occur, they must either have a defined order (One transaction occurs before the other), or the order of the operations must be irrelevant to the transactions.

  4. Durability : (When it's done, it's done.) Once a transaction is complete, any modified, new, or removed data is now in the database, and it stays unless further modified. The transaction cannot be undone by, for instance, a power failure.

331 questions
0
votes
0 answers

how to handle multiple request to update table simultaneously

i am designing an ticket booking system for a circus.suppose there are 1 seat left and there are 4 users who request simultaneously to reserve the ticket.how to handle such type of cases in mysql or webserver.
RAUSHAN RAJ
  • 120
  • 2
  • 7
0
votes
4 answers

Is there any way to achieve Atomicity in OOP languages like C#, Java?

Atomicity from the A in ACID properties for database transactions tells that each transaction conducted on a database is like binary number system, 0 or 1, all or nothing. Is it possible to achieve the same in programming languages like Java or C#…
Nikit Batale
  • 1,790
  • 2
  • 15
  • 20
0
votes
1 answer

Rollback for Atomic and Durability

I am trying to understand the ACID property of database transction: how they are achieved; which part is atomicity and which part is durability ,etc. Let's say I have a transction with two actions,A and B. Unfortunately, system powered off when…
pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
0
votes
1 answer

Can this strange behaviour be explained by Eventual Consistency on the App Engine Datastore?

I have implemented two server-side HTTP endpoints which 1) stores some data and 2) processes it. Method 1) calls method 2) through App Engine Tasks since they are time consuming tasks that I do not want the client to wait for. The process is…
0
votes
1 answer

RDBMS normalization vs performance

We are writing a MMORPG and suppose we have the following tables. The location_dynamic_objects is the table going to be queried and updated HEAVILY. As you can see position_x, position_y, location_id columns are duplicated as well as the object…
OneMoreVladimir
  • 1,653
  • 3
  • 21
  • 32
0
votes
1 answer

Various ways databases implement transaction isolation levels set in a JDBC connection

We can set the transaction isolation level on a JDBC connection in order to control the level of visibility of read/write access to the common records between concurrent transactions. One way databases implement this is by placing different types of…
Sidd K
  • 97
  • 1
  • 6
0
votes
1 answer

Mixing eventual consistency systems and legacy ACID systems

Are there any patterns for mixing eventual consistency systems with legacy ACID-systems? I want to store data in some(at least two) legacy systems on the mainframe that need ACID-like transactions. Those mainframe-databases(Let us call them…
0
votes
1 answer

Emulate transaction for batch put in hbase

I'm working on implementing rollback operation in hbase. My component is fed with all information to do put (actually there are hundred of such puts) - table, timestamp (might be null), family, qualifier, value. It buffers them, then calls…
Alex Z
  • 1,867
  • 1
  • 29
  • 27
0
votes
2 answers

MongoDB: Store average speed as a field or compute on-the-go

I am developing an Android app that uses MongoDB to store user records in document format. I will have several records that contain information about a GPS track such as start longitude and latitude, finish longitude and latitude, total time, top…
Karl
  • 517
  • 7
  • 18
-1
votes
1 answer

Should event sourcing database provide ACID properties

Not sure which term to use "Database" or "Event store" but I'm talking about where we store our events. I wonder if Event store should have ACID properties, especially the Atomicity. What I mean by that, should we be able to rollback the state, in…
Patrick
  • 734
  • 11
  • 26
-1
votes
1 answer

MongoDB for accounting software

I was trying to see if MongoDB can be used as database for an accounting/bookkeeping software. I tried to search for answers from existing questions on stackoverflow, but all of the links that I found were very old, (pre-2017) and all of them said…
Hellboy
  • 9
  • 2
-1
votes
1 answer

Problems with clustered Mongodb 4.x multi-document transactions

I have a problem with MongoDB cluster when it comes to use multi-document transactions. I have a 5 mongodb replicaset servers divided into three data centers. Two of them are in the first datacenter, two in the second, and one in the third…
devstructor
  • 1,306
  • 10
  • 12
-1
votes
1 answer

Atomicity of the data in mysql

One of the client has asked us to write a store procedure in mysql, which states that one data should be accessed by only one resources (Even if their happens to be Multiple resources ready to read the data, whomsoever will come first will take the…
Mavericks
  • 283
  • 1
  • 7
  • 20
-1
votes
2 answers

Make the following statement ACID compliant

I can't figure this out. How to make this update statement ACID compliant? Update Students Set Career = 'GRD' where Joined > '2012'
Jess
  • 19
  • 2
-1
votes
2 answers

RIAK database and ACID

Can you please help me in these questions: Is the write operation in RIAK atomic? Is the write operation durable? How is concurrent write handled? Does RIAK support transactions? Thank you
user3341697
  • 305
  • 4
  • 12
1 2 3
22
23