-
max ( ) function
Does a max function always trigger a FTS? What are the ways around it?
-
-
according the manuals this is not allowed because max is a group function. anyone with a solution for this ?
-
Do you have index on that column at all. If so it should use index full scan.
-
mmhhhh... an Index Full Scan to get all rows in the table would be more expensive than a Full Table Scan.
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
mmhhhh... an Index Full Scan to get all rows in the table would be more expensive than a Full Table Scan
It's a max function, it does not need to read all details from table rows. It'll get the details from index.
-
Originally Posted by malay_biswal
It's a max function, it does not need to read all details from table rows. It'll get the details from index.
I stand corrected, you are right.
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|