Re: [PERFORM] Performace Optimization for Dummies

2006-09-28 Thread Matthew Nuzum
into RAM then they are in-memory as long as they're actively being used. Hashtables and GDBM, as far as I know, are only useful for key->value lookups. However, for this they are *fast*. If you can figure out a way to make them work I'll bet things speed up. -- Matthew Nuzum new

Re: [PERFORM] Performace Optimization for Dummies

2006-09-28 Thread Matthew Nuzum
45 min to a little over an hour but decreased the memory usage to something like 45MB (vs dozens or hundreds of MB per hashtable) -- Matthew Nuzum newz2000 on freenode ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] Sun Fire T2000 and PostgreSQL 8.1.3

2006-04-06 Thread Matthew Nuzum
ing that can grow over time as our needs change. I don't want to > buy a server only to find out later that it cannot meet our needs with > future database projects. I have to balance a limited budget, room for > future performance growth, and current system requirements.

Re: [PERFORM] 1 TB of memory

2006-03-16 Thread Matthew Nuzum
) Pricing is tight-lipped, but searching shows $1.85 /GB. That's close to $500,000 for 250GB. One report says a person paid $219,000 for 32GB and 1TB costs "well over $1,000,000." But they "guarantee the performance." Too rich for me. -- Matthew Nuzum www.bearfrui

Re: [PERFORM] help needed asap....

2006-03-12 Thread Matthew Nuzum
varlena/GeneralBits/Tidbits/index.php Notice there's a section on performance tips. Also, this list works because volunteers who have knowledge and free time choose to help when they can. If you really need answers ASAP, there are a few organizations who provide paid support.

Re: [PERFORM] Process Time X200

2006-03-10 Thread Matthew Nuzum
at the explain analyze output of the query from pg 7.3, figure out why the plan is bad and tweak your query to get optimum performance. Yes, I agree with the other statements that say, "upgrade to 7.4 or 8.x if you can" but if you can't, then you can still work on it. -- Matthew

Re: [PERFORM] Postgres on VPS - how much is enough?

2006-03-07 Thread Matthew Nuzum
of linux, kernel and all. > > No, linux vserver is equivalent to a jail - and they work superbly imho. > developer.pgadmin.org is just one such VM that I run. > > http://www.linux-vserver.org/ > > Regards, Dave. I can confirm this. I've been using linux-vserver for years. It

Re: [PERFORM] Postgres on VPS - how much is enough?

2006-03-06 Thread Matthew Nuzum
On 3/6/06, Marc G. Fournier <[EMAIL PROTECTED]> wrote: > On Mon, 6 Mar 2006, Matthew Nuzum wrote: > > My problem with running PG inside of a VPS was that the VPS used a > > virtual filesystem... basically, a single file that had been formatted > > and loop mounted so th

Re: [PERFORM] Postgres on VPS - how much is enough?

2006-03-06 Thread Matthew Nuzum
at works on pretty much any linux OS. Try it out, tinker with the values and that way you won't have to guess when making your purchase decission. [1] http://www.colinux.org/ Coperative Linux [2] http://linux-vserver.org/ Linux-vserver project -- Matthew Nuzum www.bearfruit.org ---

Re: [PERFORM] Large Database Design Help

2006-02-09 Thread Matthew Nuzum
d probably want to start with the GDB technique unless you have a ton of available ram. You might interpret this as being a knock against PostgreSQL since I pulled the data out of the db, but it's not; You'd be hard pressed to find anything as fast as the in-memory hashtable or th

Re: [PERFORM] Hardware/OS recommendations for large databases (

2005-11-16 Thread Matthew Nuzum
oss *twice* this year by using SMART hard drive monitoring software. I can't tell you how good it feels to replace a drive that is about to die, as compared to restoring data because a drive died. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)

Re: [PERFORM] Hardware/OS recommendations for large databases (

2005-11-16 Thread Matthew Nuzum
ideology so that a server should be replaced after 3 years, where before I aimed for 5. It seems to me that the least reliable components in servers these days are the fans. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 9: In

Re: [PERFORM] Help tuning postgres

2005-10-13 Thread Matthew Nuzum
ng like this would definately peg your disk i/o. Throwing more hardware at your problem will definately help, but I'm a performance freak and I like to optimize everything to the max. *Sometimes* you can get drastic improvements without adding any hardware. I have seen some truly miraculu

Re: [PERFORM] Help tuning postgres

2005-10-12 Thread Matthew Nuzum
ow. I would suggest posting the explain analyze output for one of your slow updates. I'll bet it is much more revealing and takes out a lot of the guesswork. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[PERFORM] Logarithmic change (decrease) in performance

2005-09-28 Thread Matthew Nuzum
essage is being sent to the list to serve as a warning to other data warehouse admins that when you reach your capacity, the downward spiral happens rather quickly. Crud... Outlook just froze while composing the PHB memo. I've been working on that for an hour. What a bad day. -- Matthew Nuzum ww

Re: [PERFORM] Monitoring Postgresql performance

2005-09-28 Thread Matthew Nuzum
> /tmp/warn.txt echo >> /tmp/warn.txt top -bn 1 >> /tmp/warn.txt echo >> /tmp/warn.txt fi NOW=`date` CPU_LOAD=`cat /proc/loadavg | cut --delimiter=" " -f 1,2,3 --output-delimiter=\|` echo -e $NOW\|$CPU_LOAD\|$DB_LOAD >> ~/LOAD_MONITOR.LOG -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] Postgresql Hardware - Recommendations

2005-09-06 Thread Matthew Nuzum
iggest wins will come from RAM, disk and network investments. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [PERFORM] RAID Configuration Sugestion

2005-08-30 Thread Matthew Nuzum
to lose any data then you need to consider it imperitive to use some type of RAID setup (not RAID 0) and to achieve great performance you'll want more than 2 drives. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] RAID Configuration Sugestion

2005-08-30 Thread Matthew Nuzum
s of the app developer, which results in a better db schema, optimized queries and generally *thinking* about the performance of the code. I personally feel that to be a very rewarding aspect of my job. (As a hobby I program microntrollers that run at 4MHz and have only 256 bytes of RAM, so that

Re: [PERFORM] Need for speed

2005-08-17 Thread Matthew Nuzum
r to throw more hardware) If you have particular queries that are too slow, posting the explain analyze for each on the list should garner some help. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [PERFORM] faster INSERT with possible pre-existing row?

2005-07-26 Thread Matthew Nuzum
ups from about 15 minutes to 30, bringing the whole process to about 45 minutes. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] Projecting currentdb to more users

2005-07-12 Thread Matthew Nuzum
e +++ experience optimzing slow queries on big databases. So queries now that run in 20 ms but slow down to 7 seconds when your tables grow will likely benefit from optimizing. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] optimized counting of web statistics

2005-06-28 Thread Matthew Nuzum
fair to python, I can write the dictionary lookup code in 25% (aprox) fewer lines than similar hash table code in C#. I could go on but I think I'm starting to get off topic.) -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] optimized counting of web statistics

2005-06-28 Thread Matthew Nuzum
s. I then used C# and in memory hash tables to drop the time to 2 hours, but I couldn't get mono installed on some of my older servers. Python proved the fastest and I can process 24 hours worth of logs in about 15 minutes. Common reports run in < 1 sec and custom reports run in < 15 se

Re: [PERFORM] Do Views execute underlying query everytime ??

2005-06-21 Thread Matthew Nuzum
3. Create a cron entry to run the command once a day, it might look like this: 0 6 * * * /usr/bin/psql dbname < /home/admin/create_mat_view.txt or maybe like this: 0 6 * * * "C:\Program Files\PostgreSQL\8.0\psql.exe" dbname < "C:\create_mat_view.txt" I hope this helps

Re: [PERFORM] Do Views execute underlying query everytime ??

2005-06-21 Thread Matthew Nuzum
erely add new records to the existing table, but if your data changes, the drop table technique can be faster than doing a delete or update. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [PERFORM] Help specifying new web server/database machine

2005-06-09 Thread Matthew Nuzum
d to serve a request on a moderately loaded server. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [PERFORM] Help specifying new web server/database machine

2005-06-08 Thread Matthew Nuzum
double the RAM. I don't know anything about your application though so use the guidlines above. -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] speed up query with max() and odd estimates

2005-04-26 Thread Matthew Nuzum
On 4/26/05, Steinar H. Gunderson <[EMAIL PROTECTED]> wrote: > On Tue, Apr 26, 2005 at 03:16:57PM -0500, Matthew Nuzum wrote: > > Seq Scan on usage_access (cost=0.00..1183396.40 rows=12713851 > > width=116) (actual time=481796.22..481839.43 rows=3343 loops=1) > > T

Re: [PERFORM] speed up query with max() and odd estimates

2005-04-26 Thread Matthew Nuzum
On 4/26/05, Steinar H. Gunderson <[EMAIL PROTECTED]> wrote: > On Tue, Apr 26, 2005 at 03:16:57PM -0500, Matthew Nuzum wrote: > > Seq Scan on usage_access (cost=0.00..1183396.40 rows=12713851 > > width=116) (actual time=481796.22..481839.43 rows=3343 loops=1) > > T

[PERFORM] speed up query with max() and odd estimates

2005-04-26 Thread Matthew Nuzum
-> Index Scan Backward using usage_access_atime on usage_access (cost=0.00..22657796.18 rows=38141552 width=8) (actual time=0.40..0.41 rows=2 loops=1) Total runtime: 481842.47 msec It doesn't look like this will help at all. This table is primarily append, however I j

Re: [PERFORM] How to improve db performance with $7K?

2005-04-18 Thread Matthew Nuzum
Would the increased data density of the higher capacity drive be of greater benefit than the faster spindle speed of drive A? -- Matthew Nuzum www.bearfruit.org ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] Spend 7K *WHERE*? WAS Intel SRCS16 SATA raid? and How

2005-04-15 Thread Matthew Nuzum
nsiderate group of people as these on the performance list. -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers of "Elite Content Management System" View samples of Elite CMS in action by visiting http://www.followers.net/portfolio/ --

Re: [PERFORM] How to improve db performance with $7K?

2005-04-14 Thread Matthew Nuzum
the increased data density of the higher capacity drive be of greater benefit than the faster spindle speed of drive A? -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers of “Elite Content Management System” View samples of Elite CMS in action by visiting h

Re: [PERFORM] performance hit for replication

2005-04-12 Thread Matthew Nuzum
; > Joshua D. Drake > Thanks, I'm looking at your product and will contact you off list for more details soon. Out of curiosity, does batch mode produce a lighter load? Live updating will provide maximum data security, and I'm most interested in how it affects the server. -- Mat

[PERFORM] performance hit for replication

2005-04-12 Thread Matthew Nuzum
ostgreSQL 7.3 and 7.4, but I'm currently using 7.3. I'm eager to hear your thoughts and experiences, -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers of "Elite Content Management System" Earn a commission of $100 - $750 by recommending Elite CMS. Visi

Re: [PERFORM] Preventing query from hogging server

2005-03-24 Thread Matthew Nuzum
query my server load rose to unacceptable levels. FWIW, the explain was run from psql running on the db server, the test query the other day was run from one of the webservers. Should I run this on the db server to minimize load? -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers

Re: [PERFORM] Preventing query from hogging server

2005-03-24 Thread Matthew Nuzum
35366.31 rows=35678383 loops=1) Sort Key: accountid, sessionid -> Seq Scan on usage_access (cost=0.00..1018901.84 rows=35678384 width=28) (actual time=8.13..416580.35 rows=35678383 loops=1) Total runtime: 12625498.84 msec (7 rows) -- Matthe

Re: [PERFORM] Preventing query from hogging server

2005-03-24 Thread Matthew Nuzum
ut 10,000,000 groups. PostgreSQL version is 7.3.2 and the sort_mem is at the default setting. (I know that's an old version. We've been testing with 7.4 now and are nearly ready to upgrade.) -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers of "Elite Content Manage

[PERFORM] Preventing query from hogging server

2005-03-24 Thread Matthew Nuzum
its been running for hours already and I don't know when it will finish. -- Matthew Nuzum <[EMAIL PROTECTED]> www.followers.net - Makers of "Elite Content Management System" View samples of Elite CMS in action by visiting http://www.elitecms.com/ ---(

Re: [PERFORM] Restricting Postgres

2004-11-07 Thread Matthew Nuzum
thought. There are people who use proxying in apache to redirect expensive tasks to other servers that are dedicated to just one heavy challenge. In that case you likely do have 99% dynamic content. Matthew Nuzum | Makers of "Elite Content Management System" www.followers.net

Re: [PERFORM] How to time several queries?

2004-10-20 Thread Matthew Nuzum
p to scroll off the screen. -- Matthew Nuzum + "Man was born free, and everywhere www.bearfruit.org : he is in chains," Rousseau +~~+ "Then you will know the truth, and the TRUTH will set you free," Jesus Christ (John 8:32 NIV) -Original Message--

Re: [PERFORM] Caching of Queries

2004-09-28 Thread Matthew Nuzum
elt compelled to chime in. -- Matthew Nuzum + "Man was born free, and everywhere www.bearfruit.org : he is in chains," Rousseau +~~+ "Then you will know the truth, and the TRUTH will set you free," Jesus Christ (John 8:32 NIV) -Original Message- From: [

Re: [PERFORM] Postgres over Linux NBD or NFS

2004-06-29 Thread Matthew Nuzum
however, the proven benefits of NFS and > NAS outweigh this penalty in most production environments. Matthew Nuzum | ISPs: Make $200 - $5,000 per referral by www.followers.net | recomending Elite CMS to your customers! [EMAIL PROTECTED] | http://www.followers.net/

Re: [PERFORM] postgresql and openmosix migration

2004-06-22 Thread Matthew Nuzum
.. I'm getting this... which is problematic because..." The more clearly you state the abstract goal the more creative answers you'll get with people often suggesting things you'd never considered. I hope this helps and I hope that you achieve your goals of a well performing applica

Re: [PERFORM] PostgreSQL on VMWare vs Windows vs CoLinux

2004-06-02 Thread Matthew Nuzum
On Wed, 2004-06-02 at 17:39, Greg Stark wrote: > "Matthew Nuzum" <[EMAIL PROTECTED]> writes: > > > I have colinux running on a Fedora Core 1 image. I have the rhdb 3 (or > > PostgreSQL RedHat Edition 3) on it running. Here are tests with fsync on > > and

Re: [PERFORM] PostgreSQL on VMWare vs Windows vs CoLinux

2004-06-02 Thread Matthew Nuzum
it. I must leave my office at 4:15 EDT and will not return until Friday, although I can do another test on my home computer Thursday. Matthew Nuzum | Makers of "Elite Content Management System" www.followers.net | View samples of Elite CMS in action [EMAIL PROTECTED]

Re: [PERFORM] PostgreSQL caching

2004-05-27 Thread Matthew Nuzum
day-to-day tasks though I think you'll like it because you can detach the terminal and let it run in the background. When I do that I often forget it is running because it produces such a low load on the system. If you are going to give it a try, the one trick I used to get things going was to d

Re: [PERFORM] Configuring PostgreSQL to minimize impact of checkpoints

2004-05-11 Thread Matthew Nuzum
used by default out of the box to give good performance. Maybe your computer is using all of it's I/O capacity because it's using PIO mode or some other non-optimal method of accessing the disk. Just a suggestion, I hope it helps, Matthew Nuzum | ISPs: Make $200 - $5,000

Re: [PERFORM] Extreme high load averages

2003-07-07 Thread Matthew Nuzum
pect that after the server gets loaded up the impact will become more of a problem. By the way, I must say that this thread has been very useful. Matthew Nuzum | Makers of "Elite Content Management System" www.followers.net | View samples

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-07 Thread Matthew Nuzum
have what I call an "elitist" attitude; meaning they expect you to be an expert or dedicated to their software in order to use it. Invariably this mentality stifles the usefulness of the product. It seems that there is a relative minority of people on this list who feel that you

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-06 Thread Matthew Nuzum
ion params in an easy to read format. Both of these refer to the thorough reference manual that breaks each possible option down into it's nitty gritty details so that a user can get more information if they so desire. Matthew Nuzum | Makers of "Elite Content Management System&quo

Re: [PERFORM] Moving postgresql.conf tunables into 2003...

2003-07-06 Thread Matthew Nuzum
e are lot's of good ideas that fly around here but never get followed up on. Additionally, I have an increasingly large production database that I would be willing to do some test-cases on. I don't really know how to do it though... If someone where able to give instructions I could run te