Response delay from TRPC using postgresql

I'm using TRPC as backend and for the database using postgresql so while creating using facing delay issue let me explain throw by example. I created products table it has it one data while creating another product after that I checked on postgresql new product added on prodcuts table but while fetching from TRPC it's not getting 2 products while I have to wait for around 15-20 seconds then I can get 2 products data how can I fix this issue.