I am new to couchbase and perhaps toward frontend programming. I am having a peice of code which creates object of couchbase db and then fetches the view from the db. The problem is that it fetches all the data from begining of time that database has. My focus is to make this faster such that this gets displayed faster on site. Here is the piece of code
@app.route("/all-schools", methods=['GET'])
def past_school_schedules():
return render_template('schb.get_view('cloud', 'christmast-past'))
So once couchbase fetches all the views and displays it it takes like 30-40 sec .. which is huge since it renders the temp