We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab3faf commit 2d4ef46Copy full SHA for 2d4ef46
app/services/search.py
@@ -154,7 +154,8 @@ async def book_search(
154
155
async def update_search_view_v1(session: AsyncSession):
156
logger.info("Refreshing search view v1")
157
- stmt = select(func.refresh_search_view_v1_function())
+ # the function is a trigger function. So we just manually refresh the view for now
158
+ stmt = text("REFRESH MATERIALIZED VIEW search_view_v1")
159
await session.execute(stmt)
160
await session.commit()
161
logger.info("Refreshed search view v1")
0 commit comments