Note that there are some explanatory texts on larger screens.

plurals
  1. POIndexes on table which has duplicate values in sql
    primarykey
    data
    text
    <p>I have two tables </p> <ol> <li><p>Main table <code>PostInfo</code> columns like( <code>PostID</code>,<code>PostSubject</code>,<code>PostedDate</code>,<code>IsProcessed</code>).One entry for each Post ID</p></li> <li><p>Transaction Table <code>Post_Transaction</code></p> <pre><code> PostID PostComments Post_InsertedOn UserID -------------------------------------------------------------------- 10000 VRDFHFGFTR 2013-10-26 21:08:19.817 43434 10000 GFDGDFSDFF 2013-10-26 21:12:32.323 67576 10000 HGFHGFBNBF 2013-10-26 21:43:43.545 3232 10000 JNFNGHFGHG 2013-10-26 21:45:46.656 768 10000 MJHJNGJHGH 2013-10-26 21:56:32.767 9897 10001 XCVGFDGDFG 2013-10-26 22:54:54.868 3424 10001 YTUGFGHHGF 2013-10-26 13:32:54.132 12313 10001 HGFHFGHGHF 2013-10-26 18:08:32.878 6565 </code></pre></li> </ol> <p>We have <code>clustered unique index</code> on <code>PostID</code> column in <code>PostInfo</code> table.</p> <p><code>Clustered non unique index</code> on <code>PostID</code> column in <code>Post_Transaction</code> table. How far this <code>non unique clustered index(Post_Transaction)</code> would work efficiently as there will be 50000+ entries for each <code>PostID</code> in <code>Post_Transaction</code> table.</p> <p><code>Or</code></p> <p>do i need to create an identity column(<code>IdentID</code>) in <code>Post_Transaction</code> table.so that i can create <code>Clustered unique index</code> on that <code>IdentID</code> column,<code>Non clustered non unique index</code> on <code>PostID</code> in <code>Post_Transaction</code> table.</p> <p>Which way i need to proceed,Please suggest. :-)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload