Slow Database @ AWS
-
Hi there,
is there any way to optimize my DB since aws made my shop rly slow?I only need “SKU” and “title” search.
I have used the following code.
But my AWS_index table still looks like this:(image attatched)Can I just delete all and rescan?
or delete all columns (term_source, type, count, in_stock, on_sale, term_id, visibility,) in phpmyadmin that i dont need?
And the lines for: not SKU / not title.Like I said I only need AWS to search for SKUs and Titles of Products.
Kind Regards
Dave
Picture of DB:
https://we.tl/t-Bi55CDfvWk//aws search filter
add_filter(‘aws_indexed_data’, ‘my_aws_indexed_data’);
function my_aws_indexed_data( $data ) {
$new_terms = array();
foreach ( $data[‘terms’] as $source => $all_terms ) {
if ( strpos( $source, ‘title’ ) === 0 || strpos( $source, ‘sku’ ) === 0 ) {
$new_terms[$source] = $all_terms;
}
}
$data[‘terms’] = $new_terms;
return $data;
}
- The topic ‘Slow Database @ AWS’ is closed to new replies.