there is a requirement in the project that a field extracted from the mongodb library at the level of tens of millions of records needs to be transferred to postgresql.
because the mongodb is constantly updated, the data needs to be reversed at regular intervals. So I want to achieve the function of incremental update.
the question is, how do I save the location where I traversed the last python?
ps:mongodb is automatically generated, and the other fields do not have a strict increasing or decreasing quantity relationship.