Wie kann man InnoDB verbessern? (Geschwindigkeit von InnoDB auf Mysql / MariaDB Server)

Ich habe große Tabelle mit mehr als 1 mio. Daten. Inserts dauern bei InnoDB 100-150 mal langsamer als MyISAM. Wie kann ich die Leistung von InnoDB verbessern.

Comments

Diese Konfigurationsänderung / Erweiterung hat mir geholfen. Aber ich weiss nicht welche Punkt hat es geschafft.

 

innodb_read_io_threads = 64

innodb_write_io_threads = 16

innodb_log_buffer_size = 256M

query_cache_size = 0



innodb_buffer_pool_dump_at_shutdown=1

innodb_buffer_pool_load_at_startup=1

innodb_purge_threads = 4

innodb_buffer_pool_instances = 64

innodb_thread_concurrency = 16

innodb_flush_method = O_DIRECT

innodb_file_per_table = 1

InnoDB lässt damit keine große Verbesserung merken.

  • Diese Code hat auf unseren Server nicht funktioniert:

    innodb_read_io_threads = 64

    innodb_write_io_threads = 16

    innodb_log_buffer_size = 256M

    query_cache_size = 0

    innodb_buffer_pool_dump_at_shutdown=1

    innodb_buffer_pool_load_at_startup=1

    innodb_purge_threads = 4

    innodb_buffer_pool_instances = 64

    innodb_thread_concurrency = 16

    innodb_flush_method = O_DIRECT

    innodb_file_per_table = 1

     

  • Diese funktioniert aber keine Änderung bzw. keine Leistungsverbesserung:

    innodb_read_io_threads = 64

    innodb_write_io_threads = 16

    innodb_log_buffer_size = 256M

    query_cache_size = 64M

    innodb_purge_threads = 4

    innodb_buffer_pool_instances = 64

    innodb_thread_concurrency = 16

    innodb_flush_method = fsync

    innodb_file_per_table = 1



     

  • Und man darf nicht einfach so in my.cnf ganz unten oder oben hinzufügen. Es muss unter [mysqld] platziert werden.

 

Einfache Test wurde gemacht mit: "select * from articles order by rand() limit 10"

InnoDB: 0.48 Sekunden

MyISAM: 0.06 Sekunden

 

Beide Tabellen haben identische Daten mit mehr als 1 mio. Einträge.

 

 

Bei mir haben die Änderungen leider nichts gebracht. Habe folgendes getestet und der Server ist etwas schneller geworden:



innodb_buffer_pool_size = 1G

innodb_flush_log_at_trx_commit = 2

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare

  • 3 weeks 5 days ago
    How to Renew Let’s Encrypt SSL Certificate on Plesk via Ubuntu Shell

    Let’s Encrypt will only accept a wildcard via DNS challenge. 

    If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success. 

  • 1 month ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 1 month ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 1 month 1 week ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 1 month 3 weeks ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 1 month 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 1 month 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 1 month 3 weeks ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 1 month 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 3 months 1 week ago
    Install APCu (PHP 8.1, Plesk)

    Problem: