Re: Game Server Lags

From: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
To: Arvind Singh <arvindps(at)hotmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Game Server Lags
Date: 2012-10-02 14:24:58
Message-ID: CAEYLb_WaAr9YFGV0JC9-dhEBaxMGkcUeYAbo_pgrsdobZbb4sw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2 October 2012 15:02, Arvind Singh <arvindps(at)hotmail(dot)com> wrote:
> we are all aware of the popular trend of MMO games. where players face each
> other live.
> My questions are focussed on reducing load on Game database or Sql queries
>
> a) How to control the surge of records into the GameProgress table. so that
> players get response quicker. The Server starts to lag at peak hours or when
> 1000 players are online

It sounds like this data is not that valuable, so a small window of
data loss in the event of a crash might be acceptable for a gain in
performance. If that is the case, consider turning off
synchronous_commit. Note that this is something that you can do at the
transaction granularity, so, for example, if there are financial
transactions, they need not make this trade-off.

--
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2012-10-02 14:49:13 Re: Question about ip4r contrib and PostgreSQL 9.2
Previous Message Craig Ringer 2012-10-02 14:16:22 Re: Game Server Lags