I want to write python3 code to check and insert missing data. My **MongoDB** collection documents have one field named "height" which is **BTC** block number. I want to traverse in a range start to the latest block number and check which number is missing from range. The number which is missing I want to insert that. Can somebody help me with the logic?
I have MongoDB version 4.
Asked by Varsh
(101 rep)
Jan 4, 2019, 11:53 AM
Last activity: Feb 7, 2025, 05:04 AM
Last activity: Feb 7, 2025, 05:04 AM