java differences than two of the same configuration data in the table

Project requirements, differences than two of the same configuration data in the table.

Ideas:

1. Field paging query requires alignment of the main library, CONCAT stitching all fields.

2. Check out the main library with all the ID in the library ID.

3. To give 2 list, the Key ID is converted into a MAP, to give 2 MAP.

4. for 2 Ge map. First comparison ID exists. If it does not exist. CONCAT than stitching all fields.

5. If the library does not exist, the main library insert query from the library.

10W test data is time-consuming 50s.

 

Guess you like

Origin www.cnblogs.com/baobaoxiaokeai/p/11231409.html