Background:
The company provides a page to manipulate the database,
1. Update a record with DML
2. Use SQL Select to query out new records
3. Java program read this record directly, found that the old record
4. Go out for a cup of tea and find a new record
Problem Finder
1. Find the DBA to verify that the schema is correct based on the configured database
Ok
2. Verify that the library is a standby library
Is
3. Confirm the main library is responsible for reading and writing, library read only
Reason:
Synchronization latency issues for the main and standby libraries can be explained
1. Use update to enter the main library
2. SQL Read is also routed to the main library (dynamic routing)
3. Java program read from the library, no synchronization
The 4.java program reads from the library and the data is synchronized.
The database is based on records, but the program does not find the problem