In the Google App Engine, consider the following data warehouse model:
class Update(db.Model):
content = db.TextProperty()
date = db.DateTimeProperty()
source = db.StringProperty()
To add a new entry, I am doing something like:
db.put(Update(content=..., date=..., source=...))
How to add a record to the data warehouse only if it does not exist yet? What is the most efficient way to do this?
source
share