I have developed a application that using core data framework to store the data. and i have a table view to display that data and also i made a button in the table view that upload the content to MYSQl database server on click. Now my problem is while uploading the content to database in need only freshly inserted entries to be uploaded to server database but in my application both fresh as well as old entries are uploading into the database. So please any body give me an idea about how to upload only the newly inserted entries.
Thanks
Add a boolean attribute “uploaded” to your entity and filter the fetched entities to be uploaded.
OR
Use a timestamp attribute in your entity and keep the timestamp of the last successful upload.
OR
Keep a separate list with record IDs that have been uploaded successfully and filter them out before uploading.
OR
Use your server implementation to ignore duplicate entries.