Jump to content

Edit History

redrum

redrum

I have looking around for information about empty unnecessary database tables to optimize the database.

Some people say that it is safe to empty the table ps_guest, and some people say that it probably should be left untouched.

Since I don't know every function, feature and process that grabs data from the ps_guest-table, I'm hoping for some inputs here.

Will there be any loss of functions if I run the query below?

$query = 'DELETE FROM ps_guest WHERE id_customer = 0
                    AND id_guest    NOT IN (SELECT id_guest FROM ps_cart)
                    AND id_customer NOT IN (SELECT id_customer FROM ps_customer)';

 

redrum

redrum

I have looking around for information about empty unnecessary database tables to optimize the database.

Some people say that it is safe to empty the table ps_guest, and some people say that it probably should be left untouched.

Since I don't know every function, feature and process that grabs data from the ps_guest-table, I'm hoping for some inputs here.

Will there be any loss of functions if I run the query below?

query = D E L E T E  F R O M ps_guest W H E R E id_customer = 0
                    AND id_guest    NOT IN (S E L E C T id_guest    F R O M ps_cart)
                    AND id_customer NOT IN (S E L E C T id_customer F R O M ps_customer)';

 

×
×
  • Create New...