mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 01:11:13 -05:00
Optimize select queries
This commit is contained in:
@@ -152,7 +152,7 @@ export function useSearch(options: UseSearchOptions = {}) {
|
||||
if (types.includes('company')) {
|
||||
const { data: companies } = await supabase
|
||||
.from('companies')
|
||||
.select('*')
|
||||
.select('id, name, slug, description, company_type, logo_url, average_rating, review_count')
|
||||
.or(`name.ilike.%${searchQuery}%,description.ilike.%${searchQuery}%`)
|
||||
.limit(Math.ceil(limit / types.length));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user