Search bar is very slow

Hi

I’m trying to add a #search bar to my site’s header that shows a list of searched products by name or sku. Although it is filtering correctly, it is taking too much time to load.
Search bar - ‘bar’
Table connected to a products data collection - ‘data’

I have also connected the url page products to the table columns but instead of opening the product page, it opens the home page.

This is the code I have for the “search engine”.

import wixData from ‘wix-data’;

export function bar_keyPress(event, $w) {
let searchValue = $w(“#bar”).value;
$w(‘#pesquisar’).show();
$w(“#data”).setFilter(wixData.filter().contains(‘name’, searchValue).
or(wixData.filter().contains(‘sku’, searchValue))) ;
}

Any ideas on how can I improve speed and actually make the page products link work?