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 ArticleWhy 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 Articleselect + 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 ArticleClassification 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 ArticleMore 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 ArticleWhat'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 ArticleRead 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 ArticleLogFile 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 ArticleTransaction 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 ArticleCan 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