Jump to content

How to delete from Database product out of stock?


liuksas

Recommended Posts

I want to optimize databases :)  

I have 2 stores, one with 10k products and the other with 30 and the one with 30 works better..

same theme.

 

I moved a lot of  time product and deleted them, maybe they stay in the databases...

 

 

Link to comment
Share on other sites

On 2/20/2024 at 1:33 PM, liuksas said:

I want to optimize databases :)  

I have 2 stores, one with 10k products and the other with 30 and the one with 30 works better..

same theme.

 

I moved a lot of  time product and deleted them, maybe they stay in the databases...

 

 

Hi.

How did you remove the products please? Did you delete them in the database? They are products stored in multiple tables. If they stay somewhere, it can cause the e-shop to slow down.

You can test, for example, the following SQL query in the database:

SELECT COUNT(a.id_product) AS missing_product FROM ps_product_shop a WHERE a.id_product NOT IN (SELECT b.id_product FROM ps_product b);

 

Edited by ps8modules.com (see edit history)
Link to comment
Share on other sites

I activated in sql: SELECT COUNT(a.id_product) AS missing_product FROM ps_product_shop a WHERE a.id_product NOT IN (SELECT b.id_product FROM ps_product b);

but not help...

thank you for help 

 

who can tell me what kind of server is needed for 30k products with modifications?

 

everyone says you need a good server, but no one tells, what a good server means for prestashop 

my server: its bad server :) what a good server means? 

AMD EPYC™ 7502P
(Zen2) with Simultaneous Multithreading

RAM:128 GB DDR4 ECC

Disk:optional (against surcharge)

Connection:1 GBit/s port

Bandwidth guaranteed:1 GBit/s

Backup Space:100 GB

Traffic:Unlimited *

 

Link to comment
Share on other sites

Thank you, but I don't have an answer please.
How did you remove products from the eshop, where there are now 10k products?

The SQL I gave you should have returned some number.
what was it like

I'm trying to figure out why an eshop with 10k products is so slow and an eshop with 30k products is fast.
There will definitely be some mess in the database.

Edited by ps8modules.com (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...