transactions Questions

1

Solved

Motivation I have a service which I want to make @Transactional. My service is storing complex data in multiple tables, there is a referential integrity between the tables. public class MyData { //...
Lanciform asked 13/5, 2022 at 19:37

1

Solved

I understand the error message and i know how to solve it, but i want to know why it occurs in this specific place especially on a find method. I created a mini example for this. I have three entit...
Gulgee asked 11/5, 2022 at 17:16

6

Solved

MongoDB is to me a great database. However there are cases where I really need atomic multi-document transactions. For example to transfer things (like money or reputation) between accounts and thi...
Guthrun asked 12/5, 2011 at 21:46

4

i must admit that i am very new to indexedDB I wrote a simple code of indexedDB and it is as followed: function go() { var req = window.indexedDB.open("Uploader", 1), db; req.onerror =...
Uniformed asked 14/11, 2015 at 15:27

5

Solved

We use Hibernate through JPA and Spring to manage object persistence in our web application. We use open-session-in-view pattern to create sessions for threads responding to http requests. We also ...
Tortile asked 19/5, 2014 at 8:7

4

Solved

I'd like to configure "transactional" beans from my Spring @Configuration class instead of annotating the class implementation itself with @Transactional. Kind of like the old school way, configur...
Receptor asked 24/4, 2015 at 16:58

3

Solved

I'm trying to use a server-side curser in psycop2 as detailed in this blog post. In essence, this is achieved with from django.db import connection if connection.connection is None: cursor = con...
Tso asked 28/5, 2015 at 15:15

3

Solved

If a stored procedure contains multiple statements e.g. first an insert, then an update and finally a deletes and the stored procedure gets killed in the middle of the delete, does the insert and u...
Damon asked 29/10, 2020 at 19:39

7

I have a lot of transactions in my code, and if an error occurs in executing in one of these transactions that doesn't trigger commit or rollback, then the database is locked and any subsequent att...
Decoration asked 10/8, 2016 at 7:14

2

I am implementing an instance of the Realm Database within the android application I am designing. However, at first I got this error about Realm transactions on main UI thread: Running transaction...
Triliteral asked 28/11, 2020 at 20:28

2

Solved

Reading this documentation https://docs.djangoproject.com/en/4.0/topics/db/transactions/#django.db.transaction.on_commit This is the use case for on_commit with transaction.atomic(): # Outer atomic...
Bomar asked 22/12, 2021 at 10:8

13

From a script I sent a query like this thousands of times to my local database: update some_table set some_column = some_value I forgot to add the where part, so the same column was set to the s...
Looming asked 4/5, 2010 at 15:43

2

I've a master function A that is called before function B and after function C. Both save one model and have their own begin transaction and master transaction in function A, how is data stored? I...
Pacifica asked 7/5, 2019 at 12:12

3

Solved

This method begins with Transaction @Transactional(propagation = Propagation.REQUIRED) public Account generateDirectCustomerAccountEntity(AccountReq source, Map<String, String> headers, Strin...
Gibbs asked 18/7, 2020 at 20:8

1

I am using SQLAlchemy and PostgreSQL. Postgres supports doing deferred constraints, which allows us to postpone checking the constraints on a table until the end of the transaction. For example, i...
Cheri asked 11/9, 2015 at 23:38

2

GPay integration was working totally fine before 2 days but now its showing same error in gpay app. Intent calling for gpay payment is not working. I have completed transaction successfully days be...
Hatti asked 17/2, 2021 at 9:45

3

Can JDBC transactions and kafka transactions work together as XA transaction? Does kafka transaction API supports XA transaction?
Manatee asked 27/9, 2019 at 4:47

4

My application is experiencing lock contentions on one of our heavily-trafficked tables in our SQL Server database. I have been advised by our DBA team to follow other teams' configuration, which h...
Abisha asked 10/1, 2017 at 17:14

4

Solved

I am trying to get Spring Transaction Management working in my new Spring Boot + MyBatis application. So far I have managed to get everything working with minimal issues - it's just getting the @T...
Introgression asked 18/5, 2016 at 21:40

6

Solved

Can you have multiple transactions within one Hibernate Session? I'm unclear if this is an allowable desirable. In my code I have a long running thread and takes items from a Blocking Queue, depen...
Blockade asked 17/9, 2014 at 14:34

3

Solved

I have method M with @Transactional in service A. I have service B extends A with overrided method M. Will be overrided method M still transactional? Or I should add there @Transactional?
Avigation asked 20/12, 2013 at 18:31

3

Solved

I have the following strange scenario with spring's transaction management: I have method A which calls method B which calls method C, each of them in a different class. Methods B and C are both w...
Nogas asked 14/7, 2010 at 11:56

1

I am using Flask-SQLAlchemy, with autocommit set to False and autoflush set to True. It's connecting to a mysql database. I have 3 methods like this: def insert_something(): insert_statement = &lt...
Leishmaniasis asked 9/2, 2022 at 1:11

4

Solved

That's the source code, I need to detect the ID (see the marked position between the two queries below). $connection = Yii::app()->db; $transaction=$connection->beginTransaction(); try { $...
Rollicking asked 3/6, 2014 at 11:42

4

Solved

I have a Spring-managed service method to manage database inserts. It contains multiple insert statements. @Transactional public void insertObservation(ObservationWithData ob) throws SQLException ...
Salonika asked 19/8, 2011 at 18:30

© 2022 - 2024 — McMap. All rights reserved.