You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem associated with a search on foreign keys is related to the N+1 problem where more than required times the Database is hit, which we can reduce by using select_related and prefetch_related for one to many and many to many keys where joins would allow DB to be hit only once rather than multiple times reducing the querying time.
InstiApp/lite-hai-backend#80 and InstiApp/lite-hai-backend#82 can be taken as a reference for this
The text was updated successfully, but these errors were encountered:
The problem associated with a search on foreign keys is related to the N+1 problem where more than required times the Database is hit, which we can reduce by using
select_related
andprefetch_related
for one to many and many to many keys where joins would allow DB to be hit only once rather than multiple times reducing the querying time.InstiApp/lite-hai-backend#80 and InstiApp/lite-hai-backend#82 can be taken as a reference for this
The text was updated successfully, but these errors were encountered: