Thanks to visit codestin.com
Credit goes to github.com

Skip to content

update will bloat? #3

Closed
Closed
@digoal

Description

@digoal

select count(*) from (select pgv_insert('package1','hello',row(id,'digoal'::text,11111111,'2016-01-01'::date)) from generate_series(1,10000000) t(id) ) t ;

select count(*) from (select pgv_update('package1','hello',row(id,'test1'::text,id,'2016-01-02'::date)) from generate_series(1,10000000) t(id) ) t ;

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1161 digoal 20 0 6548248 6.117g 142340 S 0.0 9.7 2:25.63 postgres: postgres postgres [local] idle

res biger and biger when i update ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions