Quote:
|
Originally Posted by sathyaram_s
Post the table DDL (including indexes) and your query. What is the number of rows in your table ?
|
Thanks for replying.
The table currently has 1,200,000 rows, but it should grow on a weekly basis.
The table has a primary key - ID, and some foreign keys.
There are 2 main queries for this table:
1) In its simple form:
SELECT * FROM BRS WHERE BRS.ID in (?,?,?.... x n times).
2) The second query gets information by providing a list of one of the foreign keys:
SELECT * FROM BRS WHERE BRS.DRIVERCOMBOID in (?,?,? .. x m times) AND <some other small restrictions>
Usually the "chunks" of data that I refer to, are rows that have same certain foreign keys, and I usually need all of the at once.
The DDL output is pretty long - what section is needed from there?
Thanks