kraada wrote:Each particular thread that is going to make a query takes up a connection. So if you've got the HUD running on two tables, that's two connections. Import is one. If you're running housekeeping later, that's one but the other three might not be still around.
Can you double verify that each table counts as a connection? Are you sure it's not each player's HUD, or even each individual stat from a player's HUD that counts as a connection?
That's pretty important because I read that you multiply your max connections with the with work mem you set in order to see the total memory used by work mem.
Speaking of which, if I have 12 stats on hud, how much memory does work mem consume and what's a proper number to set? I ve seen anywhere from 16MB to 128MB.
I am asking all of this, because I ve got a top of the line system (i7, ssd ,32 gb Ram) and when I get to a really high number of tables like let's say 30, it's not as fluid as I would like it to be. It's not lagging mind you. Definitely not crawling. But definitely not as smooth as when I am on 15 tables.