Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6219

An evaluation of whether a system works well enough to be fit for purpose. Normally performance refers to the speed with which a system completes an operation or set of operations over time.

5 votes
Accepted

Why does this limit make the postgres planner use a much slower index scan instead of a much...

The big difference between the first two queries is that int the first one, it could go along the index used by the primary key of the table (and used by the ORDER BY clause), then filter out the rows …
András Váczi's user avatar
3 votes

The order of columns in a table

You may be interested in the following: http://www.sqlservercentral.com/Forums/Topic558567-149-1.aspx#bm558607 https://stackoverflow.com/questions/1610/can-i-logically-reorder-columns-in-a-table htt …
András Váczi's user avatar
1 vote
1 answer
1k views

slow index scan on postgresql 9.1

I have a view which is amazingly slow :) It joins two tables only, having a few simple WHERE conditions and one in a form of a subquery (see SubPlan1 below). The simplest condition is checked as an …
András Váczi's user avatar
2 votes
Accepted

slow index scan on postgresql 9.1

Well, the solution was rephrasing NOT EXISTS to NOT IN. So the index scan and the whole query run quite fast as one would expect.
András Váczi's user avatar
15 votes
Accepted

Postgres jsonb column or standard normalized table?

Besides all the problems normalization solves, this has performance benefits, too. …
András Váczi's user avatar
7 votes

postgres query performance: view vs function

The performance of all these will be the very same. If the indexes makes sense or not depends very much on the actual data. (I am pretty sure you don't need all of them, though.) …
András Váczi's user avatar
1 vote

What is retrieved from disk during a query?

A small test: CREATE TABLE test2 ( id serial PRIMARY KEY, num integer, short_text varchar(32), longer_text varchar(1000), long_long_text text ); INSERT INTO test2 (num, short_tex …
András Váczi's user avatar
6 votes
Accepted

Is the speed of a PostgreSQL SELECT adversely affected by too many indexes on the table?

No, the query performance will not be affected, or not very much. Indexes are updated on DML statements (and TRUNCATE) while they may or may not be used when executing a query. …
András Váczi's user avatar
2 votes

How to implement posts with “seen by” like facebook?

Since the user-post pairing consists exactly these two fields, which can be, expecting extremely high user and post numbers, 2×8 bytes per row, I wouldn't expect performance problems with 10,000 users …
András Váczi's user avatar
1 vote

Maintain stable data in a database

I don't really have the possibility to try jMeter now, so I don't know how following the below advice would affect your tests. Normally benchmarking is done so that after the tests the original datab …
András Váczi's user avatar
3 votes

Is it possible to have two copies of a table clustered in different arrangements seamlessly?

You can create a materialized view on your table: CREATE MATERIALIZED VIEW thecopy AS SELECT * FROM mytable; Then add a unique index that matches your PK on mytable (you cannot add a 'real' PK ther …
András Váczi's user avatar
3 votes

Logging sequential scans in PostgreSQL?

I don't know a way to log sequential scans only. Just a small remark: seqscans are not evil, you will get them (especially for smaller tables) all the time. On the other hand, you can definitely log …
András Váczi's user avatar
21 votes
Accepted

PostgreSQL Index Caching

Playing a bit with pg_buffercache, I could get answers to some of your questions. This is quite obvious, but the results for (5) also show that answer is YES I am yet to set up a good example for thi …
András Váczi's user avatar
3 votes
Accepted

postgres composite index design

I would try making two composite partial indexes like CREATE INDEX idx1 ON tw_schedules (scenario_id, type_well_id) WHERE type_well_id IS NOT NULL; CREATE INDEX idx2 ON tw_schedules (scenario_id, tw …
András Váczi's user avatar
3 votes
Accepted

Optimising query on view that merges similar tables with a clear discriminator

It is quite clear that your 'wrapper' view - while looks like an elegant solution at first - kills the performance involving 7.7M completely unnecessary rows. …
András Váczi's user avatar

15 30 50 per page