Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: Replication...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 30 of 48 Topic 4027 of 4294
Post > Topic >>

Re: Replication Syatem

by meetgaurikanekar@[EMAIL PROTECTED] ("Gauri Kanekar") Apr 29, 2008 at 06:29 PM

------=_Part_1247_32469310.1209473983973
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanx for the help.

Need some more help.

"table1" has two indices
unique indx1 = "pkfld"
unique indx2 = "fkfld1,fkfld2"

did following steps in the listed order -

1. vacuumed the whole DB
2. "table1"
      RecCnt ==> 11970789
      Size ==> 2702.41 MB
3.update "table1" set fld7 = 1000 where fld1/1000000 = 999 ;
    this UPDATED 1230307 records
4. checked "table1" size again
     Reccnt =>   11970789
     Size ==> 2996.57MB
5. Again did the update, update "table1" set fld7 = 1000 where
fld1/1000000
= 999 ;
    this UPDATED 1230307 records
6. Got "table1" size as
    RecCnt ==> 11970789
    Size ==> 3290.64
7. Updated again, update "table1" set fld7 = 1000 where fld1/1000000 = 999
;
    this UPDATED 1230307 records
6. "table1" size as
    RecCnt ==> 11970789
    Size ==> 3584.66

Found that the size increased gradually. Is HOT working over here ??
Guide me if im doing something wrong.

~ Gauri

On Tue, Apr 29, 2008 at 4:55 PM, Pavan Deolasee <pavan.deolasee@[EMAIL PROTECTED]
>
wrote:

> On Tue, Apr 29, 2008 at 4:35 PM, Gauri Kanekar
> <meetgaurikanekar@[EMAIL PROTECTED]
> wrote:
>
> >
> > Do we need to do any special config changes or any other setting for
HOT
> to
> > work??
>
> No. HOT is enabled by default, on all tables. There is no way and need
> to disable it.
>
> >
> > Any special guideline to follow to make HOT working??
> >
>
> You can do couple of things to benefit from HOT.
>
> 1. HOT addresses a special, but common case where UPDATE operation
> does not change any of the index keys. So check if your UPDATE changes
> any of the index keys. If so, see if you can avoid having index
> involving that column. Of course, I won't advocate dropping an index
> if it would drastically impact your frequently run queries.
>
> 2. You may leave some free space in the heap (fillfactor less than
> 100). My recommendation would be to leave space worth of one row or
> slightly more than that to let first UPDATE be an HOT update.
> Subsequent UPDATEs in the page may reuse the dead row created by
> earlier UPDATEs.
>
> 3. Avoid any long running transactions.
>
> Thanks,
> Pavan
>
> --
> Pavan Deolasee
> EnterpriseDB http://www.enterprisedb.com
>



-- 
Regards
Gauri

------=_Part_1247_32469310.1209473983973
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanx for the help. <br><br>Need some more help.<br><br>&quot;table1&quot;
has two indices<br>unique indx1 = &quot;pkfld&quot;<br>unique indx2 =
&quot;fkfld1,fkfld2&quot;<br><br>did following steps in the listed order
-<br>
<br>1. vacuumed the whole DB<br>2. &quot;table1&quot;&nbsp; <br>&nbsp;
&nbsp; &nbsp; RecCnt ==&gt; 11970789 <br>&nbsp; &nbsp; &nbsp; Size ==&gt;
2702.41 MB<br>3.update &quot;table1&quot; set fld7 = 1000 where
fld1/1000000 = 999 ;<br>&nbsp;&nbsp;&nbsp; this UPDATED 1230307
records<br>
4. checked &quot;table1&quot; size again<br>&nbsp;&nbsp;&nbsp;&nbsp;
Reccnt =&gt; &nbsp; 11970789<br>&nbsp;&nbsp; &nbsp; Size ==&gt;
2996.57MB<br>5. Again did the update, update &quot;table1&quot; set fld7 =
1000 where fld1/1000000 = 999 ;<br>&nbsp;&nbsp;&nbsp; this UPDATED 1230307
records<br>
6. Got &quot;table1&quot; size as<br>&nbsp; &nbsp; RecCnt ==&gt;
11970789<br>&nbsp; &nbsp; Size ==&gt; 3290.64<br>7. Updated again, update
&quot;table1&quot; set fld7 = 1000 where fld1/1000000 = 999 ;<br>
&nbsp;&nbsp;&nbsp; this UPDATED 1230307 records<br>
6. &quot;table1&quot; size as<br>
&nbsp; &nbsp; RecCnt ==&gt; 11970789<br>
&nbsp; &nbsp; Size ==&gt; 3584.66<br><br>Found that the size increased
gradually. Is HOT working over here ??<br>Guide me if im doing something
wrong.<br><br>~ Gauri<br><br><div class="gmail_quote">On Tue, Apr 29, 2008
at 4:55 PM, Pavan Deolasee &lt;<a
href="mailto:pavan.deolasee@[EMAIL PROTECTED]
">pavan.deolasee@[EMAIL PROTECTED]
>&gt;
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204,
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div
class="Ih2E3d">On Tue, Apr 29, 2008 at 4:35 PM, Gauri Kanekar<br>
&lt;<a
href="mailto:meetgaurikanekar@[EMAIL PROTECTED]
">meetgaurikanekar@[EMAIL PROTECTED]
>&gt;
wrote:<br>
<br>
&gt;<br>
&gt; Do we need to do any special config changes or any other setting for
HOT to<br>
&gt; work??<br>
<br>
</div>No. HOT is enabled by default, on all tables. There is no way and
need<br>
to disable it.<br>
<div class="Ih2E3d"><br>
&gt;<br>
&gt; Any special guideline to follow to make HOT working??<br>
&gt;<br>
<br>
</div>You can do couple of things to benefit from HOT.<br>
<br>
1. HOT addresses a special, but common case where UPDATE operation<br>
does not change any of the index keys. So check if your UPDATE changes<br>
any of the index keys. If so, see if you can avoid having index<br>
involving that column. Of course, I won&#39;t advocate dropping an
index<br>
if it would drastically impact your frequently run queries.<br>
<br>
2. You may leave some free space in the heap (fillfactor less than<br>
100). My recommendation would be to leave space worth of one row or<br>
slightly more than that to let first UPDATE be an HOT update.<br>
Subsequent UPDATEs in the page may reuse the dead row created by<br>
earlier UPDATEs.<br>
<br>
3. Avoid any long running transactions.<br>
<div><div></div><div class="Wj3C7c"><br>
Thanks,<br>
Pavan<br>
<br>
--<br>
Pavan Deolasee<br>
EnterpriseDB <a href="http://www.enterprisedb.com"
target="_blank">http://www.enterprisedb.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>--
<br>Regards<br>Gauri

------=_Part_1247_32469310.1209473983973--
 




 48 Posts in Topic:
Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-28 19:08:56 
Re: Replication Syatem
peterachilds@[EMAIL PROTE  2008-04-28 14:58:14 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-28 19:35:37 
Re: Replication Syatem
salmanb@[EMAIL PROTECTED]  2008-04-28 10:16:44 
Re: Replication Syatem
ajs@[EMAIL PROTECTED] (A  2008-04-28 12:22:43 
Re: Replication Syatem
bnichols@[EMAIL PROTECTED  2008-04-28 10:13:20 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-28 19:47:22 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-28 19:48:48 
Re: Replication Syatem
ajs@[EMAIL PROTECTED] (A  2008-04-28 12:23:45 
Re: Replication Syatem
gsmith@[EMAIL PROTECTED]   2008-04-28 13:39:39 
Re: Replication Syatem
radhika.sambamurti@[EMAIL  2008-04-28 16:58:59 
Re: Replication Syatem
Chris Browne <cbbrowne  2008-04-28 17:43:57 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-29 10:25:10 
Re: Replication Syatem
tgl@[EMAIL PROTECTED] (T  2008-04-29 01:20:04 
Re: Replication Syatem
Chris Browne <cbbrowne  2008-04-29 10:48:28 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-29 10:41:33 
Re: Replication Syatem
gsmith@[EMAIL PROTECTED]   2008-04-29 01:08:09 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-29 11:16:57 
Re: Replication Syatem
pgsql@[EMAIL PROTECTED]   2008-04-29 20:49:38 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-29 11:17:05 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-29 11:25:27 
Re: Replication Syatem
gsmith@[EMAIL PROTECTED]   2008-04-29 04:37:07 
Re: Replication Syatem
tgl@[EMAIL PROTECTED] (T  2008-04-29 10:16:02 
Re: Replication Syatem
vivek@[EMAIL PROTECTED]   2008-04-29 11:00:57 
Re: Replication Syatem
tgl@[EMAIL PROTECTED] (T  2008-04-30 11:02:39 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-29 16:35:40 
Re: Replication Syatem
alvherre@[EMAIL PROTECTED  2008-04-29 09:02:04 
Re: Replication Syatem
pgsql@[EMAIL PROTECTED]   2008-04-30 02:18:10 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-29 16:55:38 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-29 18:29:43 
Re: Replication Syatem
alvherre@[EMAIL PROTECTED  2008-04-29 09:03:14 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-29 18:39:39 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-29 18:42:40 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-29 18:46:00 
Re: Replication Syatem
stark@[EMAIL PROTECTED]   2008-04-29 09:48:31 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-30 10:59:53 
Re: Replication Syatem
heikki@[EMAIL PROTECTED]   2008-04-30 11:26:18 
Re: Replication Syatem
craig@[EMAIL PROTECTED]   2008-04-30 20:16:21 
Re: Replication Syatem
heikki@[EMAIL PROTECTED]   2008-04-30 14:35:29 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-30 11:07:35 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-30 11:09:56 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-30 12:13:11 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-30 12:19:04 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-30 12:55:30 
Re: Replication Syatem
tgl@[EMAIL PROTECTED] (T  2008-04-30 10:46:28 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-30 19:06:12 
Re: Replication Syatem
pavan.deolasee@[EMAIL PRO  2008-04-30 21:45:05 
Re: Replication Syatem
meetgaurikanekar@[EMAIL P  2008-04-30 22:17:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 15:45:52 CDT 2008.