Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
80 views

I have this TABLE_A: id columnA columnB 1 oldValueA oldValueB When two queries are performed at the exact same time and concurrency issues arise: Query #1: UPDATE TABLE_A SET columnA = 'newValueA', ...
michalte97's user avatar
0 votes
0 answers
35 views

Suppose the following two statements are executed in parallel: -- before: col1=val1, col2=val2 UPDATE my_table SET col1=new_val1,col2=new_val2 WHERE col3=val3 SELECT col1,col2 FROM my_table WHERE ...
xuhdev's user avatar
  • 9,614
0 votes
1 answer
2k views

I'm currently looking at upgrading a .NET project (standard moving to .NET 8) that uses Entity Framework (v6.4.4) to EF Core (v8.0.8). For the most part the experience has been painless but I have one ...
Mike's user avatar
  • 1
0 votes
1 answer
271 views

lets say i am getting 1 to 15 messages from kafka. I am processing it and commiting it, if the message does satisfy the condition I am uncommiting the particular message. Now, My question is how to ...
BALAJI's user avatar
  • 1
0 votes
0 answers
1k views

I have written an application using Springboot 2.0 to store books catalog in MySQL 8 database. Book information is being read from the file. Book object has a list of authors as there can be more than ...
Gary Greenberg's user avatar
0 votes
0 answers
405 views

At my company I was advised to always run SQL queries as follows: SELECT col1, col2 FROM table WITH (READUNCOMMITTED) WHERE table.id = my_id; It is a production database which is used by other ...
Ohumeronen's user avatar
  • 2,146
-1 votes
1 answer
194 views

I have a consumer with max.poll.records set to 1 and enable.auto.commit set to false for the manual offset control. However even when I am not calling commitSync, the subsequent poll is returning next ...
Hello All's user avatar
0 votes
0 answers
71 views

I have a @Service layer class with several methods, which have @Transactional(isolation = Isolation.READ_UNCOMMITTED) annotated queries and @Transactional annotated write transactions. Sometime ...
István Scheer's user avatar
0 votes
0 answers
44 views

I am writing integration tests and I use TransactionScope(TransactionScopeAsyncFlowOption.Enabled) for this purpose. I add some data to DB (MS SQL Server) and then check the result, compare it etc. ...
Spiderman5's user avatar
0 votes
1 answer
958 views

Since I'm having very long-lasting lock issues on my table records... would it be correct to use the "Read-Uncommitted" transaction isolation level for all select queries of Entity Framework ...
jangix's user avatar
  • 129
1 vote
2 answers
7k views

In he famous book "Java persistence with Hibernate" we can read the following: "A persistence context is a cache of persistent entity instances.... Automatic dirty checking is one of ...
Alex Mi's user avatar
  • 1,469
1 vote
1 answer
1k views

I have read of a few ways to do this (namely, querying the pg_stat_activity table to get the pid to kill), but I have no data coming back in those queries. In other DBMSs like MSSQL, I could at least ...
djsoteric's user avatar
  • 326
1 vote
2 answers
425 views

Suppose we have a table with an auto-increment primary key. I want to load all IDs greater than the last ID I have seen. SELECT id FROM mytable WHERE id > 10; With the naive approach, I risk ...
Timo's user avatar
  • 8,873
2 votes
1 answer
1k views

I have simple hibernate query with nolock used in query. I am getting error - A recognition error occurred and hibernate error is Exception thrown: 'NHibernate.Hql.Ast.ANTLR.QuerySyntaxException' in ...
SSD's user avatar
  • 1,293
0 votes
0 answers
830 views

I have 2 tables, Contact and ContactFunction. They have a One to Many relationship, as in a Contact can have many ContactFunctions. So ContactFunction has ContactID as a foreign key. So in my .NetCore ...
Del Habington's user avatar
0 votes
1 answer
350 views

From MySQL manual: READ UNCOMMITTED SELECT statements are performed in a nonlocking fashion, but a possible earlier version of a row might be used. Thus, using this isolation level, such reads are ...
Croco's user avatar
  • 366
6 votes
4 answers
9k views

I am trying to understand read committed and read uncommitted isolation levels. I know that theoreticay read uncommitted allows dirty reads and read committed doesn't, but I still can't really ...
user1264's user avatar
0 votes
1 answer
2k views

I want to add read uncommitted isolation level.i know it is possible to do with SQL statement. but I want to try with TransactionScope and I tried but not getting any isolation statements on MySQL ...
Atulya's user avatar
  • 170
0 votes
1 answer
2k views

I setup a DbContext where I have this code: base.Database.ExecuteSqlCommand("SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;"); in the context constructor. I execute a stored procedure like this: ...
Victor A Chavez's user avatar
0 votes
0 answers
76 views

I have a trouble. :( MS SQL Server 2016 13.0.15900.1 .NET Framework 4.5.2 There is a table with large xml fields (> 1 mb) A terrible procedure which read, change and update [xmlField] with(out) XPath ...
Lunar Whisper's user avatar
1 vote
1 answer
584 views

I wrote a function that creates a row in the table mytable accordingly to the parameters and returns the id of the created row. Unfortunately, if I use the following statement, the SELECT returns no ...
poussma's user avatar
  • 7,391
0 votes
0 answers
48 views

If my connection allows dirty reads, is it possible that I would get inconsistent results from multiple fields of the same row? Example: Connection 1: Update table1 set col1 = 1, col2 = 1 where ...
Elroy Flynn's user avatar
  • 3,248
5 votes
3 answers
7k views

There is a performance and lock issue when using EF for a update-from-query case on MSSQL 2008. So I put ReadUncommitted transaction isolationlevel, hoping to resolve it, like this, Before using (...
nwpie's user avatar
  • 735
1 vote
0 answers
1k views

Consider the following SQL statement: SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED BEGIN TRANSACTION insert into Customer(name) values('CustomerName') COMMIT Am I right in saying this Isolation ...
dstewart101's user avatar
  • 1,122
0 votes
1 answer
8k views

Does this query below work or do I have use explicitly transaction being and end? Yes I know the dangers of the read uncommitted SET TRANSACTION isolation level READ uncommitted SELECT TOP 100 ...
Furkan Gözükara's user avatar
4 votes
1 answer
44k views

I can not use NOLOCK after table names in join statements. Is it even a valid scenario to try to read uncommitted data over JOINs
Naren Karanam's user avatar
1 vote
0 answers
699 views

I am trying to understand how Transactions work in c# using the TransactionScope object. I have an understanding about them in SQL server but I don't know how to verify this in c#. For example I want ...
Huma Ali's user avatar
  • 1,819
1 vote
2 answers
1k views

I am wondering how resource expensive it is to perform a begin transaction on a connection and immediately update/insert a row into a database and leave this transaction hanging for several hours. ...
George Lica's user avatar
  • 1,826
3 votes
1 answer
951 views

Oracle doesn't allow dirty reads, so Read Uncommitted is not even allowed to be set from JDBC. PostgreSQL also falls back to Read Committed, when choosing Read Uncommitted. SQL Server defines a ...
Vlad Mihalcea's user avatar
1 vote
2 answers
107 views

I have a database with multiple tables and the user can change the data in the table. my problems is that I wont that nothing changes in the database until the user click the button "save", and even ...
chmouel kalifa's user avatar
0 votes
1 answer
868 views

Let's say we need to develop a bidding application such as one in eBay. We don't want one user's bidding to block another user's bidding, which will result in slow response. Also, when I place a bid ...
Kenny's user avatar
  • 2,022
1 vote
0 answers
139 views

I've a query to run a SQL server table, in which, I am not concerned with the exact count. So, I want to specify NOLOCK for that query. But, query itself consists of multiple subqueries and multiple ...
ptntialunrlsd's user avatar
0 votes
1 answer
107 views

I put a breakpoint in my code to pause the execution before transaction is commited or rolled back. Then I'd like to see the current state of the database, but when I set in ssms the transaction ...
Pavel Voronin's user avatar
5 votes
1 answer
13k views

I have a requirement to start new Transaction within an ongoing Transaction so that an exception in 2nd transaction will rollback only new transaction not the old one. This I am doing by setting ...
Noor Khan's user avatar
  • 265
0 votes
1 answer
378 views

If you have the following sql, is it possible that if it is run multiple times by many different processes at exactly the same time, that two or more processes may update the table? SET TRANSACTION ...
stormCloud's user avatar
  • 1,003
4 votes
1 answer
2k views

I have applications that insert rows into table A concurrently. Each application inserts rows in batch mode (using a JDBC prepared statement) using a single transaction per batch (to avoid rebuilding ...
manash's user avatar
  • 7,109
0 votes
1 answer
2k views

I would like to know to know how to read uncommitted data. I have an application which is saving an entry into table1 and then tries to read some entry from same table. I am unable to do that because ...
Arti's user avatar
  • 3,101
1 vote
3 answers
5k views

My app needs to batch process 10M rows, the result of a complex SQL query that join tables. I'll plan to be iterating a resultset, reading a hundred per iteration. To run this on a busy OLTP ...
Gili Nachum's user avatar
  • 5,638
0 votes
1 answer
2k views

select .. WITH UR ignores locks and gives only currently committed data how to read data that are not committed ? as in Oracle : update table set .. select .. gives modified and yet uncommitted ...
Ben's user avatar
  • 328
0 votes
1 answer
179 views

This is an elaboration and clarification of this question. Suppose I have two tables, Foo and Bar. Bar has a FK to Foo. In the application, the tables are represented by classes and Foo has a list ...
hlintrup's user avatar
  • 169
4 votes
1 answer
4k views

I have a work queue in SQL, managed by some services that read out entries to process with READPAST queries. I recently added a UI to check on queue status that uses READ UNCOMMITTED NHibernate ...
Michael come lately's user avatar
1 vote
2 answers
738 views

I have an NHibernate map which defines a HasMany-relationship on a type, i.e. a class has a list of another class. I would like NHibernate to be able to read uncommitted data including the list ...
hlintrup's user avatar
  • 169
7 votes
1 answer
10k views

We have a problem with some database code that apparently executes with the wrong isolation level. In this particular part of the code, it is supposed to execute with "READ UNCOMMITTED" to minimize ...
Lasse V. Karlsen's user avatar
0 votes
1 answer
165 views

Is there a way to do a read uncommitted when using Rob Conery's Massive without writing your own query? It is for a site that is mostly read-only. A CMS type of a site.
eiu165's user avatar
  • 6,301
8 votes
2 answers
2k views

We have a table in MySQL using InnoDB, and we are using a transaction isolation level of read uncommitted. Why does setting @x as shown acquire a lock? mysql> set @x = (select userID from users ...
Yoseph's user avatar
  • 925
0 votes
2 answers
1k views

Upon client's request, I was asked to turn a web application on read-uncommitted isolation level (it's a probably a bad idea...). While testing if the isolation was in place, I inserted a row ...
David SCHERRER's user avatar
7 votes
2 answers
7k views

I wrote an application (using Qt in C++) which inserts data into a SQLite database. Another application reads data from the same database, but I noticed that it is not possible to read uncommitted ...
Luca Carlon's user avatar
0 votes
2 answers
426 views

From time to time, I want to run a stored procedure to get a rough estimate of how many records in two or three different tables satisfy some criteria. If during this estimate new records are added, ...
B.M's user avatar
  • 563
3 votes
1 answer
11k views

According to the answer on this post it states: Did you know that ReadUncommitted will revert to Serialized isolation unless you've enabled the shared cache and both connections are from the same ...
Elan's user avatar
  • 6,406
1 vote
0 answers
501 views

I am trying to get a count of uncommitted records in a SQLite database using the System.Data.Sqlite library. My research thus far has pointed towards using the PRAGMA read_committed, but I always get ...
user163757's user avatar
  • 7,045