I tried dropping that index, but sql execution time is still same i.e. 1.893 
seconds.
 


     On Thursday, 16 April 2015 2:15 PM, Vishal Tiwari 
<vishuals...@yahoo.co.in> wrote:
   

 Sorry SET, but this is an existing database, I understand your point and 
completely agree with you. Shall I try droping that index then ? What you 
suggest ?
 


     On Thursday, 16 April 2015 1:35 PM, "Svein Erling Tysvær 
svein.erling.tysv...@kreftregisteret.no [firebird-support]" 
<firebird-support@yahoogroups.com> wrote:
   

     >CRM_DOCUMENT_HEADER Table - PK_DOCUMENT_HEADER is primary key and having 
seperate index on this column as well

What do you mean by this, Vishal?

I think it was fixed a while ago, but duplicate indexes used to confuse the 
optimizer, so PK_DOCUMENT_HEADER ought not to be both the primary key and have 
a separate single-field index (unless the PK or index is DESCENDING or consists 
of more than one field) - at best it makes INSERTs marginally slower due to 
having to maintain two identical indexes.

Set
  #yiv9985683921 -- #yiv9985683921ygrp-mkp {border:1px solid 
#d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv9985683921 
#yiv9985683921ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv9985683921 
#yiv9985683921ygrp-mkp #yiv9985683921hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv9985683921 #yiv9985683921ygrp-mkp #yiv9985683921ads 
{margin-bottom:10px;}#yiv9985683921 #yiv9985683921ygrp-mkp .yiv9985683921ad 
{padding:0 0;}#yiv9985683921 #yiv9985683921ygrp-mkp .yiv9985683921ad p 
{margin:0;}#yiv9985683921 #yiv9985683921ygrp-mkp .yiv9985683921ad a 
{color:#0000ff;text-decoration:none;}#yiv9985683921 #yiv9985683921ygrp-sponsor 
#yiv9985683921ygrp-lc {font-family:Arial;}#yiv9985683921 
#yiv9985683921ygrp-sponsor #yiv9985683921ygrp-lc #yiv9985683921hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv9985683921 
#yiv9985683921ygrp-sponsor #yiv9985683921ygrp-lc .yiv9985683921ad 
{margin-bottom:10px;padding:0 0;}#yiv9985683921 #yiv9985683921actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv9985683921 
#yiv9985683921activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv9985683921
 #yiv9985683921activity span {font-weight:700;}#yiv9985683921 
#yiv9985683921activity span:first-child 
{text-transform:uppercase;}#yiv9985683921 #yiv9985683921activity span a 
{color:#5085b6;text-decoration:none;}#yiv9985683921 #yiv9985683921activity span 
span {color:#ff7900;}#yiv9985683921 #yiv9985683921activity span 
.yiv9985683921underline {text-decoration:underline;}#yiv9985683921 
.yiv9985683921attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv9985683921 .yiv9985683921attach div a 
{text-decoration:none;}#yiv9985683921 .yiv9985683921attach img 
{border:none;padding-right:5px;}#yiv9985683921 .yiv9985683921attach label 
{display:block;margin-bottom:5px;}#yiv9985683921 .yiv9985683921attach label a 
{text-decoration:none;}#yiv9985683921 blockquote {margin:0 0 0 
4px;}#yiv9985683921 .yiv9985683921bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv9985683921 
.yiv9985683921bold a {text-decoration:none;}#yiv9985683921 dd.yiv9985683921last 
p a {font-family:Verdana;font-weight:700;}#yiv9985683921 dd.yiv9985683921last p 
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv9985683921 
dd.yiv9985683921last p span.yiv9985683921yshortcuts 
{margin-right:0;}#yiv9985683921 div.yiv9985683921attach-table div div a 
{text-decoration:none;}#yiv9985683921 div.yiv9985683921attach-table 
{width:400px;}#yiv9985683921 div.yiv9985683921file-title a, #yiv9985683921 
div.yiv9985683921file-title a:active, #yiv9985683921 
div.yiv9985683921file-title a:hover, #yiv9985683921 div.yiv9985683921file-title 
a:visited {text-decoration:none;}#yiv9985683921 div.yiv9985683921photo-title a, 
#yiv9985683921 div.yiv9985683921photo-title a:active, #yiv9985683921 
div.yiv9985683921photo-title a:hover, #yiv9985683921 
div.yiv9985683921photo-title a:visited {text-decoration:none;}#yiv9985683921 
div#yiv9985683921ygrp-mlmsg #yiv9985683921ygrp-msg p a 
span.yiv9985683921yshortcuts 
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv9985683921 
.yiv9985683921green {color:#628c2a;}#yiv9985683921 .yiv9985683921MsoNormal 
{margin:0 0 0 0;}#yiv9985683921 o {font-size:0;}#yiv9985683921 
#yiv9985683921photos div {float:left;width:72px;}#yiv9985683921 
#yiv9985683921photos div div {border:1px solid 
#666666;height:62px;overflow:hidden;width:62px;}#yiv9985683921 
#yiv9985683921photos div label 
{color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv9985683921
  #yiv9985683921reco-category {font-size:77%;}#yiv9985683921 
#yiv9985683921reco-desc {font-size:77%;}#yiv9985683921 .yiv9985683921replbq 
{margin:4px;}#yiv9985683921 #yiv9985683921ygrp-actbar div a:first-child 
{margin-right:2px;padding-right:5px;}#yiv9985683921 #yiv9985683921ygrp-mlmsg 
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv9985683921 
#yiv9985683921ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv9985683921 
#yiv9985683921ygrp-mlmsg select, #yiv9985683921 input, #yiv9985683921 textarea 
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv9985683921 
#yiv9985683921ygrp-mlmsg pre, #yiv9985683921 code {font:115% 
monospace;}#yiv9985683921 #yiv9985683921ygrp-mlmsg * 
{line-height:1.22em;}#yiv9985683921 #yiv9985683921ygrp-mlmsg #yiv9985683921logo 
{padding-bottom:10px;}#yiv9985683921 #yiv9985683921ygrp-msg p a 
{font-family:Verdana;}#yiv9985683921 #yiv9985683921ygrp-msg 
p#yiv9985683921attach-count span {color:#1E66AE;font-weight:700;}#yiv9985683921 
#yiv9985683921ygrp-reco #yiv9985683921reco-head 
{color:#ff7900;font-weight:700;}#yiv9985683921 #yiv9985683921ygrp-reco 
{margin-bottom:20px;padding:0px;}#yiv9985683921 #yiv9985683921ygrp-sponsor 
#yiv9985683921ov li a {font-size:130%;text-decoration:none;}#yiv9985683921 
#yiv9985683921ygrp-sponsor #yiv9985683921ov li 
{font-size:77%;list-style-type:square;padding:6px 0;}#yiv9985683921 
#yiv9985683921ygrp-sponsor #yiv9985683921ov ul {margin:0;padding:0 0 0 
8px;}#yiv9985683921 #yiv9985683921ygrp-text 
{font-family:Georgia;}#yiv9985683921 #yiv9985683921ygrp-text p {margin:0 0 1em 
0;}#yiv9985683921 #yiv9985683921ygrp-text tt {font-size:120%;}#yiv9985683921 
#yiv9985683921ygrp-vital ul li:last-child {border-right:none 
!important;}#yiv9985683921 

   

  
  • ... Robert martin r...@chreos.com [firebird-support]
    • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
      • ... Robert martin r...@chreos.com [firebird-support]
  • ... Virgo Pärna virgo.pa...@mail.ee [firebird-support]
    • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
      • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
        • ... Virgo Pärna virgo.pa...@mail.ee [firebird-support]
          • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
            • ... Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
              • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
              • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]

Reply via email to