Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/storage/rocksdb/mysql-test/rocksdb/t/     Datei vom 1.9.2026 mit Größe 534 B image not shown  

Quelle  optimize_table.inc   Sprache: Delphi

 

# run a check script to verify sst files reduced enough during each optimize table
perl;

$size += -s $_ for (<$ENV{datadir}/#rocksdb/*.sst>);
$file= "$ENV{MYSQL_TMP_DIR}/sst_size.dat";

if (-f $file) {
  open(F, '<', $file) || die("Can't open file $file: $!");
  $old = <F>;
  close F;
  if ($old - $size < 1e6) {
    print "sst file reduction was not enough $old -> $size (minimum 1000kb)\n";
  } else {
    print "sst file reduction ok\n";
  }
}
open(F, '>', $file) || die("Can't open file $file: $!");
print F $size;
close F;
EOF

Messung
CHZG
80808080

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland