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
9
votes
2 answers

With support of multi-document ACID transactions in MongoDB, is MongoDB now suitable for financial applications?

MongoDB now support multi-document ACID Transactions. With this update, is it safe to say that MongoDB can now be used for financial applications involving financial transactions such as payments? What are people's thoughts on this? It has some…
Joon
  • 9,346
  • 8
  • 48
  • 75
9
votes
3 answers

Implementing ACID

I am starting research on a project that will need to provide ACID semantics on its database. Due to the nature of the data it is not suitable for storage in common off-the-shelf systems (relational or key-value). What are some good resources on…
cjh
9
votes
1 answer

How Cassandra pagination behaves on concurrent inserts

I do pagination of large result sets with Cassanda 2.2 using the java client and PagingState like described here: https://datastax.github.io/java-driver/2.2.0-rc2/features/paging/ That works pretty well but i can not find any informations how…
salyh
  • 2,095
  • 1
  • 17
  • 31
9
votes
1 answer

Aerospike ACID clarification

Aerospike database says, that it is [...] architected with three key objectives: To create a flexible, scalable platform that would meet the needs of today’s web-scale applications To provide the robustness and reliability (ie, ACID) expected…
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78
7
votes
1 answer

Merge delta data into an external table using hive's merge statement

I have an external table mapped in Hive (v2.3.2 on EMR-5.11.0) that I need to update with new data around once a week. The merge consists of a conditional upsert statement. The table's location is in s3, and the data is always there (created once,…
Meori Lehr
  • 193
  • 10
7
votes
2 answers

Does the CAP theorem imply that ACID is not possible for distributed databases?

There are NoSQL ACID (distributed) databases, despite CAP theorem. How this is possible? What's the relation between CAP theorem and (possible/not possible of) being ACID? Is impossible for a distributed computer system to simultaneously provide…
gremo
  • 47,186
  • 75
  • 257
  • 421
6
votes
1 answer

What (if any) ACID guarantees can Core Data provide on iOS?

I'm working on an app where I need to persist data in a reliable manner, i.e. updates need to be persisted all-or-nothing even in the face of application crashes and quits etc. However I can't find much information on the level of resilience Core…
frankodwyer
  • 13,948
  • 9
  • 50
  • 70
6
votes
5 answers

SQL Server and ACID property of Database

I am newbie to database and SQL Server. So when i have search things about database on internet i have found that The Database said to be good if it obey or follow the ACID (Atomicity, Consistency, Isolation, Durability) property. I wonder that the…
Aryan SuryaWansi
  • 2,691
  • 10
  • 31
  • 33
6
votes
7 answers

IE9 Acid 3 test?

Does anybody know if Microsoft is planning on having IE9 pass with 100/100 on the Acid 3 test? The current version of IE9 gets a 68/100 on the test (can be viewed here, main site here). What did IE8 pass with? What about IE7? How does it compare to…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
6
votes
1 answer

Fastest persistent key/value db for fixed size keys and only insert/fetch (no delete/update)?

Given the following requirements of a persistent key/value store: Only fetch, insert, and full iteration of all values (for exports) are required No deleting values or updating values Keys are always the same size Code embedded in the host…
Vinnie Falco
  • 5,173
  • 28
  • 43
6
votes
2 answers

I'd like to store aeson's Value type using acid

I'd like to store aeson Values usig acid-store. I've taken a minimal acid implementation and tried to naively switch the types over to Value. These are my calls to deriveSafeCopy: $(deriveSafeCopy 0 'base ''Object) $(deriveSafeCopy 0 'base…
schellsan
  • 2,164
  • 1
  • 22
  • 32
6
votes
3 answers

Trying to hack my way around SQLite3 concurrent writing, any better way to do this?

I use Delphi XE2 along with DISQLite v3 (which is basically a port of SQLite3). I love everything about SQLite3, except the lack of concurrent writing, especially that I extensively rely on multi-threading in this project :( My profiler made it…
TheDude
  • 3,045
  • 4
  • 46
  • 95
5
votes
1 answer

Understanding working of multiple gunicorn process

I have no knowledge of what I'm trying to understand, surfing the internet brought me here and now I need this in my code. I use django-rest-framework, gunicorn, and Nginx. Suppose I have 3 workers process of gunicorn setup. and I have a very simple…
Ranu Vijay
  • 1,137
  • 9
  • 18
5
votes
1 answer

How ACID works in a restful micro-service architecture

I'm pretty new at implementing microservice architecture and this question is breaking my mind How a microservice architecture address transactional mechanism between different end-points calls. An example is banking services based on a microservice…
J Brain
  • 61
  • 4
5
votes
1 answer

Dirty Reads in SQL Server AlwaysOn

I have a pair of SQL Server 2014 databases set up as a synchronous AlwaysOn availability group. Both servers are set to the Synchronous commit availability mode, with a session timeout of 50 seconds. The secondary is set to be a Read-intent only…
Paul
  • 16,285
  • 13
  • 41
  • 52
1 2
3
22 23