How to manually build mysql cache

前端 未结 2 545
失恋的感觉
失恋的感觉 2021-01-07 09:13

I have a table of over 150,000 rows of which most would be updated daily. I have mysql caching turned on so the pages load faster however everytime the database is updated

2条回答
  •  天命终不由人
    2021-01-07 09:42

    150,000 rows is really small in terms of table size.

    Is your table properly indexed?

    How are you doing the update, are you scheduling and/or throttling the updates or just letting it go all at once?

    The slowdown is most likely happening because you are trying to update too many rows at once w/o letting the server catch a breath. Try throttling the updates.

提交回复
热议问题