DB Annotation update question

#1

I used to have a type with the following DB Annotations:
@db(compactType=true
datastore=‘cassandra’,
partitionKeyField=‘parent’,
persistenceOrder=‘descending(timestamp)’,
persistDuplicates=false,
shortId=true,
shortIdReservationRange=100000)

I am removing compactType from this. Now my question is do I need a migration script for existing data? If so, how would I add the update/created date into metadata for entries that were put in before this change. I will probably use a map/reduce job, but how would I update this for existing data.

0 Likes