At the default isolation level of mysql (Repeatable Read), if I issue a select like select * from table_a where column_a = 'a' order by id limit 100, and after a while, I issued another statement within the same transaction like select * from table_a where column_a = 'a' order by id limit 100, 101. Meanwhile, another transaction is appending into this table_a with new records (it won't be insert in-between) and it commits before the first transaction issues the second select. The question is would the second select in the first transaction return the newly inserted results by the second transaction?
Repeatable read regarding select * with order by and limit
206 Views Asked by Danny At
1
There are 1 best solutions below
Related Questions in MYSQL
- MySQL Select Rank
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Push mysql database script to server using git
- Why does mysql stop using indexes when date ranges are added to the query?
- Google Maps API Re-size
- store numpy array in mysql
- Whats wrong with this query? Using ands
- MySQL-Auto increment
- show duplicate values subquery mysql
- Java Web Application Query Is Not Working
- microsoft odbc driver manager data source name not found and no default driver specified
- Setting foreign key in phpMyAdmin
- No responses from google places text search api
- Adding to MAMP database in SQL/PHP
- I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
Related Questions in DATABASE
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- microsoft odbc driver manager data source name not found and no default driver specified
- Cloud Connection with Java Window application
- Automatic background scan if user edit column?
- Jmeter JDBC Connection Configuration Parametrization of Database URL for accessing SQL Database
- How to grant privileges to current user
- MySQL: Insert a new row at a specific primary key, or alternately, bump all subsequent rows down?
- Inserting and returning autoidentity in SQLite3
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- SQL - Adding a flag based on results within a query - best practice?
- Android database query not returning any results
- Developing a search and tag heavy website
- Oracle stored procedure wrapping compile error with inline comments
- Problems communicating with mysql in php
Related Questions in TRANSACTIONS
- C# MySQL Transaction commit
- Multiple transaction managers - Selecting a one at runtime - Spring
- Django transactions: managing two different transactions atomically inside the overriding of save() method
- How can I add FOR UPDATE to a cakephp3 query?
- Why my mysql transaction is not working properly?
- Multiple Hibernate transactions in a JTA session
- Using transaction in Ruby On Rails controller method
- Google Analytics duplicate transaction id multiple domains
- How to limit dynamic queries to only accept select statements?
- combining rollback in two action rails 4
- Symfony2: transactions fail with "There is no active transaction."
- Can RPUSH and LPUSH in Redis race?
- PHP rollback on IBMi db2 doesn't work
- Error in OleDbTransaction
- Wildfly - Infinispan Transactions configuration
Related Questions in TRANSACTION-ISOLATION
- Azure Sql Server fails to keep data consistency using a check constraint and a trigger
- How do I detect, specifically, a serialization failure when using SQL Alchemy?
- InnoDB & Isolation Levels - Aren't repeatable reads a bad thing?
- MySQL REPEATABLE-READ Workbench transaction level not set
- transaction isolation level (READ UNCOMMITTED) of Spring Batch
- How can I fix "Snapshot isolation transaction aborted due to update conflict"?
- Why no lock in MySQL for READ COMMITTED
- sql server a simple query takes forever to run due to transaction isolation level
- GET DIAGNOSTICS ROW_COUNT with concurrent statements
- Does MySQL InnoDB create consistent snapshots for SELECT on multiple tables with UNION when isolation level is READ COMMITTED
- How can I verify that my query is causing no locks?
- How can an old, committed transaction affect ongoing txns?
- ejb3 isolated (autonomous) transaction inside session bean
- Snapshot isolation transaction aborted due to update conflict
- How wildfly resets properties set on connection when returned to connection pool
Related Questions in REPEATABLE-READ
- Understanding InnoDB Repeatable Read isolation level snapshots
- Dump with SERIALIZABLE more consistent than `--single-transaction` (REPEATABLE READ) in MySQL
- update then select value which updated by other transaction but get the value before update
- Understanding InnoDB X-Lock with REPEATABLE_READ and READ_COMMITED isolation level
- InnoDb - SELECT while a Repeatable Read Transaction is Executing
- MySQL Repeatable Read isolation level and Lost Update phenomena
- What concurrency issues can this PostgreSQL code create?
- PostgreSQL's Repeatable Read Allows Phantom Reads But its document says that it does not allow
- Does REPEATABLE READ affect Hibernate Expectations?
- Replay java stream in memory effiicient way?
- Repeatable-read transaction
- Is it possible to do a Phantom read to a row someone just updated?
- What is the theory behind when DELETE or UPDATE query comes in a Repeatable Read Isolation Level?
- Can I disable mysql next key lock in repeatable read isolation level?
- Is there a way to run transaction for the data in DB before some time point in Spring Boot?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Q: "But what puzzles me is that the first select should only create a snapshot of the fist 100 records (the limited 100 records). But why the second select didn't return the newly inserted records?"
A: Because the newly inserted records essentially "don't exist" within the context of your transaction.