Hi Hariharan,
Is there an association between the objects in the empty list and the list that you retrieve from the database? If so, it might be caused by autocommits. Once you associate two entities and you try to commit the underlying object, it will look for the associated entity and autocommit it if it doesn't exist yet.
If that's not the issue, then I'm gonna need more details. Please provide some additional info and maybe screenshots of the microflow that you're using to commit the list. If you can, please provide some more info on the entities as well.