getmagic-ai / kollaborate_v1

https://kollaborate-v1.vercel.app
0 stars 2 forks source link

[Infra Quality Improvement] Improve caching and performance #13

Open andylnkd opened 1 month ago

andylnkd commented 1 month ago
  1. When navigating from route (e.g., /search to /brand/[]) and back, its running /api/search again , when instead it should render quickly from cached page
  2. On home page, each click on every row is causing entire fetch again and again
  3. Improve performance by inspecting latency across app
andylnkd commented 1 month ago

Some other issues:

  1. When searching and going from search route /search?query=fitess&companies to a result page like https://www.kollaborate.co/brands/399 the results are not shown, its only a blank page. You can reproduce this on web easily.
  2. There need to be two fixes here: a. render the results again b. use caching --> see the default caching in nextjs as the first attempt. https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating