Using aggregate functions extensively

Hi Guys

We are building an influx data store purpose built for consumption by a front end , what would be a good way to store measurements that ensures faster retrieval -

  1. Store raw data and let the consumer app use agrregate influx ql functions to sum , mean , percentile the various data points and produde data of various granularities based on groupby functions
  2. Store mesaurements pre-calculated so that the fetch can be just fetching the fields based on tags , which is the data is stored all these operations pre-perfomed on the same

I am new to influxdb hence the question , from a consumer standpoint purpose built means something that can be consumed as it is but from an overall influxdb standpoint what will be more performance efficient