What is the Big-O for SQL select?

前端 未结 3 1471
感情败类
感情败类 2020-12-24 07:13

What is the Big-O for SQL select, for a table with n rows and for which I want to return m result?

And What is the Big-O for an Updat

3条回答
  •  既然无缘
    2020-12-24 07:47

    I think the real answer can only be determined on a case by case basis (database engine, table design, indices, etc.).

    However, if you are a MS SQL Server user, you can familiarize yourself with the Estimated Execution Plan in Query Analyzer (2000) or Management Studio (2005+). That gives you a lot of information you can use for analysis.

提交回复
热议问题