Re: [PERFORM] Poor disk (virtio) Performance Inside KVM virt-machine vs host machine

2016-04-26 Thread Michael Nolan
On Tue, Apr 26, 2016 at 10:03 AM, Artem Tomyuk wrote: > Hi All. > > I've noticed that there is a huge (more than ~3x slower) performance > difference between KVM guest and host machine. > > Is this unique to KVM, or do similar things happen with other virtualizers? -- Mike Nolan

Re: [PERFORM] Insert vs Update

2015-07-15 Thread Michael Nolan
xes for that record, even if the index keys are not changing. That's because any pending transactions still need to be able to find the 'old' data, while new transactions need to be able to find the 'new' data. And ACID also means an update is essentially a delete-and-insert. -- Mike Nolan

Re: [PERFORM] Insert vs Update

2015-07-15 Thread Michael Nolan
r that an update involves more work than an insert. Measuring that impact on performance is probably a bit more challenging, because it's going to be dependent on the specific table and the contents of the row, among other things. -- Mike Nolan no...@tssi.com

Re: [PERFORM] New server: SSD/RAID recommendations?

2015-07-07 Thread Michael Nolan
nevertheless > enforce the correct ordering of persisting fsync'd data? If you write to > file A and fsync it, then write to another file B and fsync it too, is it > guaranteed that if B is persisted, A is as well? Because if it isn't, you > can end up with filesystem (or database) corruption anyway. > > - Heikki > > The sad fact is that MANY drives (ssd as well as spinning) lie about their fsync status. -- Mike Nolan

Re: [PERFORM] Are there tuning parameters that don't take effect immediately?

2015-06-12 Thread Michael Nolan
On Fri, Jun 12, 2015 at 4:52 PM, David G. Johnston < david.g.johns...@gmail.com> wrote: > On Fri, Jun 12, 2015 at 4:37 PM, Michael Nolan wrote: > >> The only thing I can come up that's happened since last night was that we >> ran the nightly vacuum analyze on that d

[PERFORM] Are there tuning parameters that don't take effect immediately?

2015-06-12 Thread Michael Nolan
atistics target. The parameters I was working with were: effective_cache_size shared_buffers temp_buffers work_mem maintenance_work_mem Looking at the free command, I see a lot more memory being used for buffer/cache today. (Centos 7.) -- Mike Nolan no...@tssi.com

Re: [PERFORM] Some performance testing?

2015-04-08 Thread Michael Nolan
be from 3.13.X which as I understand it is a later kernel. Can you clarify which 3.X kernels are good to use and which are not? -- Mike Nolan

Re: [PERFORM] Unsubscribe

2006-10-04 Thread Nolan Cafferky
isplay full headers for one of the list messages to get the instructions from there. -- Nolan Cafferky Software Developer IT Department RBS Interactive [EMAIL PROTECTED]

Re: [PERFORM] how to tune this query.

2006-07-04 Thread Nolan Cafferky
ed) OR (f.PropertyId = g.PropertyId AND f.p_Modified_Date = g.p_LastModified)) -- Luckys -- Nolan Cafferky Software Developer IT Department RBS Interactive [EMAIL PROTECTED] ---(end of broadcast)--- TIP 1: if posting/reading th

Re: [PERFORM] Cluster vs. non-cluster query planning

2006-05-01 Thread Nolan Cafferky
Tom Lane wrote: Nolan Cafferky <[EMAIL PROTECTED]> writes: But, I'm guessing that random_page_cost = 1 is not a realistic value. Well, that depends. If all your data can be expected to fit in memory then it is a realistic value. (If not, you should be real car

Re: [PERFORM] Cluster vs. non-cluster query planning

2006-05-01 Thread Nolan Cafferky
Tom Lane wrote: The first-order knob for tuning indexscan vs seqscan costing is random_page_cost. What have you got that set to? This is currently at the default of 4. All of my other planner cost constants are at default values as well. Dropping it to 1 drops the estimated cost by a compa

Re: [PERFORM] Cluster vs. non-cluster query planning

2006-05-01 Thread Nolan Cafferky
Questions: * What can I do to reduce the estimated row count on the query? * Why does clustering drive down the estimated cost for the index scan so much? Does a change in correlation from .72 to 1 make that much of a difference? * Can I convince my query planner to index scan without clustering

[PERFORM] Cluster vs. non-cluster query planning

2006-05-01 Thread Nolan Cafferky
I'm running postgres 8.0.7, and I've got a table of orders with about 100,000 entries. I want to just look at the new orders, right now 104 of them. EXPLAIN ANALYZE SELECT order_id FROM orders WHERE order_statuses_id = (SELECT id FROM order_statuses WHERE id_name = 'new'

Re: [PERFORM] ok you all win what is best opteron (I dont want a hosed system again)

2005-05-14 Thread Mike Nolan
> This can often be called for. I'm working on a 400GB data warehouse right > now, and almost *all* of our queries run from materialized aggregate tables. I thought that was pretty much the definition of data warehousing! :-) -- Mike Nolan ---(end o

Re: [PERFORM] Sustained inserts per sec ... ?

2005-04-01 Thread Mike Nolan
, which is about 4200 transactions/second. -- Mike Nolan ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] Sustained inserts per sec ... ?

2005-04-01 Thread Mike Nolan
tement instead of COPY. The hardware is a Dell dual Xeon system, the disks are mirrored SATA drives with write buffering turned off. -- Mike Nolan ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] Trigger & Function

2004-06-01 Thread Mike Nolan
at match the structure of the tables they are logging. 2. Write a trigger function that converts columns to something you can store in a common log table. (I've not found a way to do this without inserting one row for each column being logged, though.) -- Mike Nolan ---

Re: [PERFORM] Long running queries degrade performance

2004-04-16 Thread Mike Nolan
le-clicks even when they only want one click. -- Mike Nolan ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [PERFORM] Long running queries degrade performance

2004-04-16 Thread Mike Nolan
production server. The same query a while later might respond quickly again. I'm not sure where to look for the delay, either, and it is intermittent enough that I'm not even sure what monitoring techniques to use. -- Mike Nolan ---(end of broadcast)---

Re: [PERFORM] PostgreSQL and Linux 2.6 kernel.

2004-04-03 Thread Mike Nolan
ammers working on tuning issues for SQL Server than PostgreSQL has working on the whole project. -- Mike Nolan ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [PERFORM] Fixed width rows faster?

2004-03-06 Thread Mike Nolan
> Mike Nolan wrote: > > Is there a way to copy a table INCLUDING the check constraints? If not, > > then that information is lost, unlike varchar(n). > > "pg_dump -t" should work fine, unless I'm misunderstanding you. I was specifically referring to doing

Re: [PERFORM] Fixed width rows faster?

2004-03-06 Thread Mike Nolan
ar(n). -- Mike Nolan ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] Fixed width rows faster?

2004-03-05 Thread Mike Nolan
rk as specified, I don't think the standard cares much about what's happening behind the curtain. -- Mike Nolan ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [PERFORM] Fixed width rows faster?

2004-03-05 Thread Mike Nolan
> Frankly, the only reason to use anything other than TEXT is compatibility with > other databases and applications. You don't consider a requirement that a field be no longer than a certain length a reason not to use TEXT? -- Mike Nolan ---(end o

Re: [PERFORM] [pgsql-advocacy] MySQL+InnoDB vs. PostgreSQL test?

2004-02-04 Thread Mike Nolan
when you've done your homework". Can they call you at the unemployment office? -- Mike Nolan ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so

Re: [PERFORM] What's faster?

2003-12-26 Thread Mike Nolan
build indexes on a regular basis, even if you move that field into a separate table. -- Mike Nolan ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [PERFORM] Improving a simple query?

2003-07-13 Thread nolan
ery with a 'where in' clause that couldn't be written as a join. I think linguistically 'where in' may even be a special case of 'join'. Yet another question for the theoretists: Would it be possible to optimize a 'where in' query by rewriting it as

Re: [PERFORM] Improving a simple query?

2003-07-13 Thread nolan
> select * from attributes_table where id in (select id from > attributes where (name='obsid') and (value='oid00066')); Can you convert it into a join? 'where in' clauses tend to slow pgsql down. -- Mike Nolan ---(end of broad