Re: Performance of ByteA: ascii vs binary
От
Олег Самойлов
Тема
Re: Performance of ByteA: ascii vs binary
Дата
Msg-id
09359D8F-A713-455A-AC26-9551B39490CE@ya.ru
Ответ на
Performance of ByteA: ascii vs binary (Thomas Güttler)
Список
Дерево обсуждения
Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Performance of ByteA: ascii vs binary Олег Самойлов <splarv@ya.ru>
Re: Performance of ByteA: ascii vs binary "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Performance of ByteA: ascii vs binary "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Performance of ByteA: ascii vs binary Tom Lane <tgl@sss.pgh.pa.us>
Re: Performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: Performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: Performance of ByteA: ascii vs binary Tom Lane <tgl@sss.pgh.pa.us>
minio server. Was: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: minio server. Was: Performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: minio server. Was: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Script which shows performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Script which shows performance of ByteA: ascii vs binary Francisco Olarte <folarte@peoplecall.com>
Re: Script which shows performance of ByteA: ascii vs binary Kenneth Marshall <ktm@rice.edu>
Re: Script which shows performance of ByteA: ascii vs binary "Peter J. Holzer" <hjp-pgsql@hjp.at>
Re: Script which shows performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
Re: Script which shows performance of ByteA: ascii vs binary Adrian Klaver <adrian.klaver@aklaver.com>
Re: Script which shows performance of ByteA: ascii vs binary Francisco Olarte <folarte@peoplecall.com>
Just theoretically assumption. PostgreSQL sometimes may optimise internal format of data and can sometimes zip data. ASCII data can be zipped better, then binary random data. Also PostgreSQL sometimes take decision to keep a column in an external file, if the column is still too big after zip. I don’t know what exactly happens in your case, but here can be a reason. > 18 марта 2019 г., в 17:33, Thomas Güttler написал(а): > > I did some benchmarking and in my setup there was major > performance difference. > > I tested a ByteA column. > > If I used ascii data the tests took 52 seconds. > If I used random binary data the test took 250 seconds. > > binary data is (roughly) five times slower than ascii data? > > Is this a know fact, or is there something wrong with my benchmark? > > I used Python and psycopg2. > > Regards, > Thomas Güttler > > > -- > Thomas Guettler http://www.thomas-guettler.de/ > I am looking for feedback: https://github.com/guettli/programming-guidelines >
В списке pgsql-general по дате отправления