Quantcast
Channel: Question and Answer » transaction
Browsing index pages (35 articles)
↧

Can I emulate Oracle's autonomous transaction in MySQL?

I have a number of tables that have triggers on them that insert records in queueing and logging tables. The problem is that those inserts are then part of the same transaction. That means that any IUD...

View Article


Transaction in a stored procedure

I need to perform an UPDATE and an INSERT in a single transaction. That code works fine on its own, but I’d like to be able to call it easily and pass in the required parameters. When I try to nest...

View Article


LogFile Size increases by SSIS Package execution

On production server we have 125 GB free space. The SSIS package is doing some delete in Transaction. e.g. Insert 3 columns which are mainly business keys into a staging table and then deleting the...

View Article

Read READ COMMITED transaction advantage in MySQL, high performance object model

I am writing high performance object model with READ COMMITED locking. My question is if there is any reason to starting READ ONLY transaction for read only operations vs. standard SELECT not enclosed...

View Article

What's the deal with transactions in a stored procedure called by an SSRS...

Consider the following: sp_a contains an sp_executesql call to exec sp_b sp_b begins and commits a transaction, then immediately logs @@TRANCOUNT. When I call sp_a manually from within SSMS, the...

View Article


More scalable alternative to a transaction-per.request in a SQL+REST stack?

I’m new in web programming with SQL database. So please forgive my ignorance. I’m using some modern framework to make a REST server with a SQL database. I’m using transaction only when I think I need...

View Article

Classification of strict two phase locking

According to the definition of strict two-phase locking: All exclusive hold locks must be held until the transactions commit. But if we have transactions that deal with only shared locks, and if the...

View Article

select + update/insert sequence

In my web application (java+mySQL) I have the following server side (pseudo)code: select count(*) c form table where condition; if c>0 then update... else insert... In some situations (heavy load,...

View Article


Why am I getting old data?

Today I discovered something weird on PostgreSQL 9.5. (I have no idea whether this is because of beta or not.) When I want to fetch data, I get old and deleted data from query. I then do VACUUM FULL...

View Article


Postgresql Disk Allocation in Begin End Transaction

I have a loop in transaction block that creates a temporary table,updates,exports to txt file and drops table at the end of the block. After some time I noticed that disk size was getting smaller each...

View Article

How system resolves when particular resource lock at uncommitted transaction

Let us assume Transaction T1#: Initiated on 2015-10-30 10:25:41.380 Transaction T2#: Initiated on 2015-10-30 10:25:41.580 The above two transactions are initiated through application. T1# & T2#...

View Article

Generate incrementing IDs without sequences

Suppose there’s a multi-tenant application where users can create some kind of documents with basic structure like CREATE TABLE users (id SERIAL PRIMARY KEY, email TEXT); CREATE TABLE documents ( id...

View Article

calling multiple procedures from my application Vs calling procedures inside...

I have a scenario of saving user details into my database(MySQL 5.1); i have three tables for saving user details; user_data,user_contact,user_address, so if i insert one user data i have to check for...

View Article


Image may be NSFW.
Clik here to view.

Elements inside a container: How to perform atomic operations on them?

In my DB (Postgres 9.4) I have the following items: Tshirts, Jeans, Shoes and Boxes. Tshirts, Jeans, Shoes can be placed inside a box and they can have a color (the color may be null). Each element of...

View Article

How to implement partial normalization while keeping data integrity across...

I’ve been researching how to properly design a mongo schema and came across this blog post on their site: http://blog.mongodb.org/post/87892923503/6-rules-of-thumb-for-mongodb-schema-design-part-2 The...

View Article


Forcing MS SQL Server to rollback on error

I am having some problem to understand how transactions work on SQL Server, even after I thought I had all answers from the documentation. To put it simply, I have a transaction at the beginning of a...

View Article

How do workflow tools (jBPM) keep transactional state consistent?

I’m looking at jBPM specifically, but I think this applies with other systems too. As I understand it.. When placing an item into a workflow, one does not generally put a reference to that item, one...

View Article


PostgreSQL visibility of records changes from other transaction inside the...

I have a table “tst” which has a “status” column using which we process records in that table. Once the records are processed we set the status to ‘Y’; #d tst Table "core.tst" Column | Type | Modifiers...

View Article

MySQL Commited data not seen to select query

Context: The framework used is Spring and all queries are run with JdbcTemplate. Mysql Server version is 5.6.19. The table is an InnoDB table and defaults like auto commit and isolation level...

View Article

CLR/C# equivalent to XACT_STATE()

I am porting a set of T-SQL stored procedures to C#/CLR. In the T-SQL, we use XACT_STATE() to determine if an error requires rolling back to a savepoint or rolling back the transaction entirely. I...

View Article
Browsing index pages (35 articles)


Latest Images