Description
Right now a GET request to /frame fetches all the frame data, since the data is very big, it takes a considerable amount of time, causing performance issue. A better approach would be to add another endpoint, which will GET a frame by id. /frame?id=.
Now the GET request to /frame will respond with an array of Frame_ids, without the frame data. Hence performance will be improved. And then GET request to /frame?id= with the id will return the Frame object.
Description
Right now a GET request to /frame fetches all the frame data, since the data is very big, it takes a considerable amount of time, causing performance issue. A better approach would be to add another endpoint, which will GET a frame by id.
/frame?id=.Now the GET request to
/framewill respond with an array of Frame_ids, without the frame data. Hence performance will be improved. And then GET request to/frame?id=with the id will return the Frame object.