Re: MongoDB 3.2 beating Postgres 9.5.1?

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Paul Jones <pbj(at)cmicdo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: MongoDB 3.2 beating Postgres 9.5.1?
Date: 2016-07-19 10:19:53
Message-ID: 578DFEC9.5050908@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> CREATE INDEX json_tables_idx ON json_tables USING GIN (data jsonb_path_ops);
> Bitmap Heap Scan on json_tables (cost=113.50..37914.64 rows=10000 width=1261)
> (actual time=2157.118..1259550.327 rows=909091 loops=1)
> Recheck Cond: (data @> '{"name": "AC3 Case Red"}'::jsonb)
> Rows Removed by Index Recheck: 4360296
> Heap Blocks: exact=37031 lossy=872059
Hmm, looks like too small work_mem because lossy heap block count is too big.

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cyril B. 2016-07-19 12:43:22 Constraint using a SQL function executed during SELECT
Previous Message Andrew Sullivan 2016-07-19 10:02:42 Re: MediaWiki + PostgreSQL is not ready for production?