Indexes


  1. The slow query log is written as __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, the slow query log is written as text, so it is viewable with any file display program. The mysqldumpslow utility can also be used to summarize the contents of the same.


  1. The slow query log can be used to identify queries that may be performing badly.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In MySQL, the slow query log is used to identify queries that may be performing badly. This log can help find the queries that might benefit from indexing. The slow query log is written as text.



  1. For a table having 4 columns, the number of columns to which hash function is applied when using hash indexes is __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In MySQL, for the hash indexes, a hash function is applied to each of the column values. The resulting hash values are stored in the index and used to perform lookups on it.


  1. If a column contains 7 values and 6 distinct values, the cardinality is __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, the cardinality of a column is the number of distinct values that it contains. A column that contains the values 1, 2, 3, 4, 4, 5, 6 has a cardinality of six and not seven.



  1. How many of the following shared tablespaces is bound by the OS file size limit?
    MyISAM, InnoDB, TRANSACTION











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, all the MyISAM tables shared tablespace files size if bound by the operating system file size limits. For InnoDB tables shared tablespaces, it is not bound by this factor.