Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7247

MySQL on Synology NAS : mounting Tables and indexes in Memory (no replies)

$
0
0
Hi,

I'm running MySQL on my Synology NAS in a standard configuration (DSM 3.2.1955) ie MySQL 5.1.49 and Apache 2.2.21 with PHP 5.3.6.


My queries on a table with 500 000 records (16 Mo) to get the records of the day are very slow (more than ten seconds).

SELECT UNIX_TIMESTAMP(DateHeure) AS 'datestamp', DATE(DateHeure) AS rec_date, TIME(DateHeure) AS rec_time, Volts, Temps FROM `IPX800` WHERE Date(DateHeure)=CURDATE() order by DateHeure DESC


It seems that tables are accessed on disk not in memory, same thing for the indexes.


What are the values ​​to set in MySQL variables to achieve this goal, to mount the tables and the indexes in memory allocating 100 Mo on a total RAM of 512 Mo ??




Thanks a lot for your help.


Yann from France

Viewing all articles
Browse latest Browse all 7247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>