>>1. EXECUTE BLOCK and there for select and deleteI am completely unaware about 
>>execute block. Would you offer any help, so I could learn from it.
>>2. Temp Table>>3. speed up subselect with expression index on 
>>Upper(Trim(MBH.HEADER_BOOK_CODE)) I have taken off Upper(Trim()) functions. 
>>All fields in condition which needs paramerter value, I have crated every 
>>single index for individual column. 


     On Wednesday, 14 October 2015 6:23 PM, "liviuslivius 
liviusliv...@poczta.onet.pl [firebird-support]" 
<firebird-support@yahoogroups.com> wrote:
   

     Hi, you have few ways1. EXECUTE BLOCK and there for select and delete2. 
Temp Table3. speed up subselect with expression index on 
Upper(Trim(MBH.HEADER_BOOK_CODE))  regards,Karol Bieniaszewski  W dniu 
2015-10-14 11:21:44 użytkownik Vishal Tiwari vishuals...@yahoo.co.in 
[firebird-support] <firebird-support@yahoogroups.com> napisał:
 Hi All, I have 480 Update SQL statements which I am executing using ADScript 
component in Delphi 2010. Update SQL updates data in only one table called 
MY_BOOK, but there is a join with MY_BOOK_HEADER table. Below is the Update 
SQL, which is taking 81 seconds to execute all 480 Update SQL statements. Any 
idea how could I improve the speed of these 480 Update SQL statements ? Update 
SQL: Update MY_BOOK MB SET BOOK_NAME = 'Book Name1' , BOOK_DESCRIPTION = 'Book 
Desfcription1' Where MB.BOOK_TYPE = 4 And Exists (Select 1 from MY_BOOK_HEADER 
MBH             Where                  Upper(Trim(MBH.HEADER_BOOK_CODE)) = 
Upper(Trim('127518010109038'))                And MBH.FK_BOOK_GROUP =  
'{79B79C33-CE56-4084-912B-6DD9F70B3DC4}'                And MBH.PK_BOOK_HEADER 
= MB.SK_BOOK_HEADER      &n bsp; );  Thanks In Advance. With Best Regards. 
Vishal
   #yiv7098669047 #yiv7098669047 -- #yiv7098669047ygrp-mkp {border:1px solid 
#d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv7098669047 
#yiv7098669047ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv7098669047 
#yiv7098669047ygrp-mkp #yiv7098669047hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv7098669047 #yiv7098669047ygrp-mkp #yiv7098669047ads 
{margin-bottom:10px;}#yiv7098669047 #yiv7098669047ygrp-mkp .yiv7098669047ad 
{padding:0 0;}#yiv7098669047 #yiv7098669047ygrp-mkp .yiv7098669047ad p 
{margin:0;}#yiv7098669047 #yiv7098669047ygrp-mkp .yiv7098669047ad a 
{color:#0000ff;text-decoration:none;}#yiv7098669047 #yiv7098669047ygrp-sponsor 
#yiv7098669047ygrp-lc {font-family:Arial;}#yiv7098669047 
#yiv7098669047ygrp-sponsor #yiv7098669047ygrp-lc #yiv7098669047hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv7098669047 
#yiv7098669047ygrp-sponsor #yiv7098669047ygrp-lc .yiv7098669047ad 
{margin-bottom:10px;padding:0 0;}#yiv7098669047 #yiv7098669047actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv7098669047 
#yiv7098669047activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv7098669047
 #yiv7098669047activity span {font-weight:700;}#yiv7098669047 
#yiv7098669047activity span:first-child 
{text-transform:uppercase;}#yiv7098669047 #yiv7098669047activity span a 
{color:#5085b6;text-decoration:none;}#yiv7098669047 #yiv7098669047activity span 
span {color:#ff7900;}#yiv7098669047 #yiv7098669047activity span 
.yiv7098669047underline {text-decoration:underline;}#yiv7098669047 
.yiv7098669047attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv7098669047 .yiv7098669047attach div a 
{text-decoration:none;}#yiv7098669047 .yiv7098669047attach img 
{border:none;padding-right:5px;}#yiv7098669047 .yiv7098669047attach label 
{display:block;margin-bottom:5px;}#yiv7098669047 .yiv7098669047attach label a 
{text-decoration:none;}#yiv7098669047 blockquote {margin:0 0 0 
4px;}#yiv7098669047 .yiv7098669047bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv7098669047 
.yiv7098669047bold a {text-decoration:none;}#yiv7098669047 dd.yiv7098669047last 
p a {font-family:Verdana;font-weight:700;}#yiv7098669047 dd.yiv7098669047last p 
span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv7098669047 
dd.yiv7098669047last p span.yiv7098669047yshortcuts 
{margin-right:0;}#yiv7098669047 div.yiv7098669047attach-table div div a 
{text-decoration:none;}#yiv7098669047 div.yiv7098669047attach-table 
{width:400px;}#yiv7098669047 div.yiv7098669047file-title a, #yiv7098669047 
div.yiv7098669047file-title a:active, #yiv7098669047 
div.yiv7098669047file-title a:hover, #yiv7098669047 div.yiv7098669047file-title 
a:visited {text-decoration:none;}#yiv7098669047 div.yiv7098669047photo-title a, 
#yiv7098669047 div.yiv7098669047photo-title a:active, #yiv7098669047 
div.yiv7098669047photo-title a:hover, #yiv7098669047 
div.yiv7098669047photo-title a:visited {text-decoration:none;}#yiv7098669047 
div#yiv7098669047ygrp-mlmsg #yiv7098669047ygrp-msg p a 
span.yiv7098669047yshortcuts 
{font-family:Verdana;font-size:10px;font-weight:normal;}#yiv7098669047 
.yiv7098669047green {color:#628c2a;}#yiv7098669047 .yiv7098669047MsoNormal 
{margin:0 0 0 0;}#yiv7098669047 o {font-size:0;}#yiv7098669047 
#yiv7098669047photos div {float:left;width:72px;}#yiv7098669047 
#yiv7098669047photos div div {border:1px solid 
#666666;height:62px;overflow:hidden;width:62px;}#yiv7098669047 
#yiv7098669047photos div label 
{color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv7098669047
 #yiv7098669047reco-category {font-size:77%;}#yiv7098669047 
#yiv7098669047reco-desc {font-size:77%;}#yiv7098669047 .yiv7098669047replbq 
{margin:4px;}#yiv7098669047 #yiv7098669047ygrp-actbar div a:first-child 
{margin-right:2px;padding-right:5px;}#yiv7098669047 #yiv7098669047ygrp-mlmsg 
{font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv7098669047 
#yiv7098669047ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv7098669047 
#yiv7098669047ygrp-mlmsg select, #yiv7098669047 input, #yiv7098669047 textarea 
{font:99% Arial, Helvetica, clean, sans-serif;}#yiv7098669047 
#yiv7098669047ygrp-mlmsg pre, #yiv7098669047 code {font:115% 
monospace;}#yiv7098669047 #yiv7098669047ygrp-mlmsg * 
{line-height:1.22em;}#yiv7098669047 #yiv7098669047ygrp-mlmsg #yiv7098669047logo 
{padding-bottom:10px;}#yiv7098669047 #yiv7098669047ygrp-msg p a 
{font-family:Verdana;}#yiv7098669047 #yiv7098669047ygrp-msg 
p#yiv7098669047attach-count span {color:#1E66AE;font-weight:700;}#yiv7098669047 
#yiv7098669047ygrp-reco #yiv7098669047reco-head 
{color:#ff7900;font-weight:700;}#yiv7098669047 #yiv7098669047ygrp-reco 
{margin-bottom:20px;padding:0px;}#yiv7098669047 #yiv7098669047ygrp-sponsor 
#yiv7098669047ov li a {font-size:130%;text-decoration:none;}#yiv7098669047 
#yiv7098669047ygrp-sponsor #yiv7098669047ov li 
{font-size:77%;list-style-type:square;padding:6px 0;}#yiv7098669047 
#yiv7098669047ygrp-sponsor #yiv7098669047ov ul {margin:0;padding:0 0 0 
8px;}#yiv7098669047 #yiv7098669047ygrp-text 
{font-family:Georgia;}#yiv7098669047 #yiv7098669047ygrp-text p {margin:0 0 1em 
0;}#yiv7098669047 #yiv7098669047ygrp-text tt {font-size:120%;}#yiv7098669047 
#yiv7098669047ygrp-vital ul li:last-child {border-right:none 
!important;}#yiv7098669047 

  
  • Re: [firebird-... liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
    • Re: [fire... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
      • Re: [... liviusliv...@poczta.onet.pl [firebird-support]
      • Re: [... setysvar setys...@gmail.com [firebird-support]
        • R... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
          • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]
            • ... Vishal Tiwari vishuals...@yahoo.co.in [firebird-support]

Reply via email to