Performance of querying across two mysql databases on the same server?

前端 未结 2 404
长发绾君心
长发绾君心 2021-01-04 08:07

Is there any performance hit from querying over two (or more) databases on the same MySQL server, compared to if those databases had been merged into one?

Background

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 08:41

    No. In MySQL, "databases" are essentially just catalogues which have no effect on the way data are stored or queried.

    Querying two tables in different databases is the same as querying two tables in the same db, from a query execution standpoint.

提交回复
热议问题