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
4
votes
1 answer

How To Implement ACID Transactions in Loopback

We've been trying to implement ACID transactions in Loopback without success. The only examples in the documentation use the 'create' method.We've tried completely overriding the events as well as multiple variations of Operation Hooks. We have only…
A2MetalCore
  • 1,621
  • 4
  • 25
  • 49
4
votes
1 answer

Is OrientDB really ACID compliant?

I' am research OrientDB for academic studies. One big part we should look at is the ACID-paradigma. The OrienDB Manual says: OrientDB is an ACID compliant DBMS. It also says: When you create a property, OrientDB checks the data for property and…
marc
  • 41
  • 2
4
votes
3 answers

Any way to get Meteor using a native ACID compliant db?

I am seriously considering Meteor framework for building every POC and apps in the future...but, I can't get ride of an ACID compliant database as I have few usages of multi-documents atomic transaction that require this compliance. Meteor strongly…
4
votes
1 answer

ArangoDB Transactions - How prevent from throwing exceptions

How to prevent ArangoDB from throwing an exception during the Transaction when looking for a specific document which perhaps does not exist at that moment? Nodejs sends the transaction in one block to ArangoDb where it gets processed. That's…
europeanguy
  • 235
  • 2
  • 10
4
votes
1 answer

HBase: atomic 'check row does not exist and create' operation

I suggest this should be one of common cases but probably I use wrong keywords when googling around. I just need to create new table record with completely random key. Assume I obtained key with good randomness (almost random). However I can't be…
Roman Nikitchenko
  • 12,800
  • 7
  • 74
  • 110
4
votes
3 answers

Insert failed, but identity value grows, does this break the Atomicity rule?

When I importing data to a new table from a large excel, if one record failed, then nothing is imported. I think it's ok because it meet the Atomicity rule. However, when I fixed the source data error and import again, the identity column does not …
LiuYan 刘研
  • 1,614
  • 1
  • 16
  • 29
4
votes
1 answer

Using acid-state - safeCopy of a function

Problem when there is a data type : MyData = One Int | Two (Int -> Int) | Three | Four the problem is that when i say $(deriveSafeCopy 0 'base ''MyData) i got the following error: No instance for (SafeCopy (Int -> Int) ) arising from the use of…
Illiax
  • 1,002
  • 1
  • 8
  • 21
3
votes
1 answer

Schema-free/flexible ACID database for a SaaS application?

I am looking at rewriting a VB based on-premise (locally installed) application (invoicing+inventory) as a web based Clojure application for small enterprise customers. I am intending this to be offered as a SaaS application for customers in similar…
tmbsundar
  • 243
  • 1
  • 6
3
votes
3 answers

What are some real world implications of non-ACID database compliance?

Specifically is there some risk that data can be lost? I'm looking at running an intensive transaction processing system where it is critical that nothing be lost. Are there any examples of NoSQL being used in mission critical applications such as…
deltanovember
  • 42,611
  • 64
  • 162
  • 244
3
votes
1 answer

Does Elastic Search Support ACID properties

Elastic search is referred to as text based search engine which persists data as json documents in index specified inside nodes which are a part of elastic search cluster. Elastic Search is often referred as No-Sql Database also, so I was wondering…
Aditya
  • 950
  • 8
  • 37
3
votes
1 answer

mysql data sharding geographically

What is the common approach to data sharding based on regions? a.k.a GDPR enforcement - EU data stays in EU. If I were to save users' emails in users table - I would need to keep data for US and EU people separated somehow. Example mysql…
Alex
  • 4,607
  • 9
  • 61
  • 99
3
votes
2 answers

Using NoSQL and Relational data stores for high volume web site

We are building a large scale e-comm web site to service over 100,000 users, but we expect the number of users to grow rapidly over the first year. In general, the site functions very much like ebay where users can create, update, and remove…
user646584
  • 3,621
  • 5
  • 25
  • 27
3
votes
1 answer

What happens when a hive insert is failed halfway?

Suppose an insert is expected to load 100 records in hive and 40 records have been inserted and the insert failed for some reason. will the transaction roll back completely, undoing 40 records which were inserted? or Will we see 40 records in the…
shankar
  • 196
  • 14
3
votes
1 answer

ACID transactions, durability

I am trying to understand ACID transactions, and I didn't get one thing about Durability. As far as I get durability ensures that all completed transactions are saved, even if some sort of technology failure occurs. What does it mean to be saved…
Nika Kurashvili
  • 6,006
  • 8
  • 57
  • 123
3
votes
1 answer

Simple bulk data persistance framework

Is there an ACID framework for bulk data persistance, which would also allow some basic search capabilities? I am not looking for a full blown DBMS, but rather something fast, light and simple. Even something which would just take care of atomic…
vgru
  • 49,838
  • 16
  • 120
  • 201