On the face of it, I encountered this problem recently when the project was about to go live
In Greendao’s database table, the ID field is unique due to the insertion of data with duplicate IDS
However, our business logic is that if the database is emptied and the data is inserted, it is theoretically impossible to have duplicate ids
DaoUtils.getDaoSession().getPurchaseOrderTableDao().insertInTx(mPurSkuList);
In Greendao’s database table, the ID field is unique due to the insertion of data with duplicate IDS
However, our business logic is that if the database is emptied and the data is inserted, it is theoretically impossible to have duplicate ids
DaoUtils.getDaoSession().getPurchaseOrderTableDao().insertInTx(mPurSkuList);
The number of lines of code goes to this location
The first thing that comes to mind is that the data table may not be completely cleaned up, but after debugging, it is indeed completely cleaned up
Continue debugging and find problems
Read More:
- Using the TP framework, an error is reported sqlstate [08004] [1040] too many connections
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- The solution of duplicate entry ‘for key’ primary ‘when inserting data in MySQL
- Duplicate entry ‘787192513’ for key ‘primary’
- Connect to the repository by using the database resource library!
- Solution of duplicate entry ‘value’ for key ‘field name’ in MySQL
- DM database data migration DTS error solution
- MySQL operation and maintenance slave_ skip_ errors
- [Oracle] when inserting data, “ora-00001: unique constraint” appears
- Error: can’t locate revision identified by ‘xxx’
- E11000 duplicate key error collection in mongodb
- How to prevent duplicate submission
- Insert datagram error: ISAM error: no free disk space
- R note for Bioinfo: the column for the select call is undefined
- Codeworks educational round 96 [reverse pair] E. string reverse
- Solution to the problem that SQL database query result field contains new line character, which leads to copy to excel dislocation
- mysql error 1033 Incorrect information in file: ‘xxx.frm’ (Fixed)
- mysql ERROR 1050 (42S01): Table already exists
- Oracle can’t start the database due to deleting DBF file by mistake
- Arithmetic overflow error converting numeric to data type numeric.