0

I am using bottle(python) framework to fetch data from mongodb and push to grafana.But my problem is it is fetching all the data on each request everytime.So I want to remember the timestamp or id of the last data fetched, so next time it will fetch the new data from the last timestamp or id onwards.can it be done using sessions

ksouravdas
  • 124
  • 7

1 Answers1

3

Yes, You can do it using session and middleware(using encryption).

Please refer to the below URL.

Bottle.py session with Beaker

Vivek Ambaliya
  • 101
  • 1
  • 6