My database has 2 main tables:
- ~43,258 rows InnoDB utf8_unicode_ci 5.5 MiB
- 4,363 rows InnoDB utf8_unicode_ci 14.5 MiB
Every day there are 10000 rows added to table1 and 1000 rows added to table2.
What is the recommendation for number of rows per table (for both tables, notice my second table has rows at size of 3.3kb)?
I want to optimize performance when updating a row or running a query.
Also, what is the recommended way to backup my tables?
If you are not using transactions while storing or updating tables, switch table type to MyISAM its quite faster than Innodb with much less overhead.
Add Indexes to frequently accessed columns
You can consider partitions. partition the table on access date or other imp key.
for backups you can always dump the database. synchronization is other option.