Files
red-valley/docs/db_optimization_notes.md
2026-03-29 21:41:17 +03:00

901 B

Database — Note & Tasks

SQL Housing Fix (DONE )

  • Go to SQL tab in phpMyAdmin
  • Execute initial ALTER and CREATE TABLE statements
  • Check if player_houses table has credit column
  • Execute credit column additions if necessary
  • Final verification and report

DB: red-valleyhttp://localhost/phpmyadmin/


crypto_history Optimization (PENDING ⚠️)

  • Run initial query to check row count and date range
    • Total: 2,343 rows
    • Range: 2026-02-11 → 2026-03-03
  • Delete rows older than 7 days
  • Run final query to confirm remaining count

Warning

Tabelul crypto_history are 2,343 rânduri și generează un oxmysql oversized query la fiecare SELECT *. Trebuie adăugat LIMIT sau șters periodic.

SQL de curățat:

DELETE FROM crypto_history WHERE created_at < DATE_SUB(NOW(), INTERVAL 7 DAY);