prepare-batch is defined already in the misc ns
transfer measurements in batches
make the measurements transfer resilient to stops

by recording the sensors that have been migrated already.
better handling of the list of processed sensors
unlogged batches
paginate batches