sayanroyc / Spartan_Server

0 stars 0 forks source link

Set Properties to non indexed #31

Open nickgarfield opened 8 years ago

nickgarfield commented 8 years ago

Indexed properties cost 2 extra operations to write https://cloud.google.com/appengine/pricing

sayanroyc commented 8 years ago

Most properties should be indexed since down the line it allows us to run our own analytics. We cannot do any filters/queries on a property if it is not indexed.

Unindexed properties should be ones like properties of the verification class, delivery_address, and image_path_links. I would even recommend indexing the geopoint properties, because we can retrieve data about transactions in a certain location by using a bounding box.

Basically if you ever foresee a property being useful for any type of analytics, index it.