Navision/SQL queries are very slow with Purchase Header table

Job ID: 34114800

Budget: $10 – $30 USD

In Dynamics Nav 2018 SQL queries are very slow with Purchase Header table.

Other tables are correct, but everything related to Purchase Header it's extremely slow. Probably there's a key missing.

I need someone to fix it so it runs normally like other tables for example Sales Header.