performance - single join select vs. multiple simple selects

后端 未结 8 1567
逝去的感伤
逝去的感伤 2020-12-15 04:08

What is better as far as performance goes?

8条回答
  •  情歌与酒
    2020-12-15 04:55

    As has been said before, there is no right answer without context.

    The answer to this is dependent on (from the top of my head):

    • the amount of joining
    • the type of joining
    • indexing
    • the amount of re-use you could have for any of the separate pieces to be joined
    • the amount of data to be processed
    • the server setup
    • etc.

提交回复
热议问题