Need help investigating full table scan
This past weekend i was updating a DB with some new product data. The process to import the new data(using 3rd party application) typically takes 30min-2hrs depending on the amount\kind of data being imported. Yesterday, I encountered a full table scan during the import that ran for 6 hours before I terminated the update. I am looking for information/ideas on how to correct this issue. What I know so far:
Problem SQL statement: SELECT DISTINCT RA_LIB_ID,CODE FROM RA_ATTRIBUTES WHERE RA_LIB_ID = :1
The RA_ATTRIBUTES table:
Size - 500mb
# of columns - 10
Row Count – 3017638
0