postgresql - Postgres how would working memory be affected by this query -
i using postgres 9.6 , new databases , confused working memory , how things work . using postgres app social networking app, use lot of joins , order statements . right working_memory set 4 mb , used sql statement uses total of 25 kb of memory comes working_mem . if 2 requests happen @ same time total of 50 kb of work_mem used in total ? reading question below , got confused on how work_mem used when getting multiple requests @ same time .
select json_build_object('results', array_to_json(array_agg(t))) (select p.expires,p.website, s.post,p.fullname,v.profile_id,location, s.is_place,s.streetplace,s.streetplace_id,s.profile_id profile_id, s.profile_image,s.question,s.votes,s.comments,p.expires,p.business_n, p.business_pitch,p.phone_number,s.reported, s.id,s.stream_image,s.shares, s.pic_height streams s left join votes v on (s.id = v.stream_id , v.profile_id=11) join profiles p on (s.profile_id = p.id) s.latitudes>=28.1036 , 28.9732>=s.latitudes , s.longitudes>=-81.8696 , -80.8798>=s.longitudes , s.reported < 6)t

Comments
Post a Comment