Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BC28D1337B77 for ; Tue, 30 Nov 2010 08:31:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 70706-10 for ; Tue, 30 Nov 2010 12:31:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from out.mail.amis.hr (out1.mail.amis.hr [188.129.0.4]) by mail.postgresql.org (Postfix) with ESMTP id 7B8861337B69 for ; Tue, 30 Nov 2010 08:31:31 -0400 (AST) Received: from out.fsec.sm.srv.amis.hr (out.fsec.sm.srv.amis.hr [192.168.106.22]) by out.mail.amis.hr (Postfix) with ESMTP id 37F28202B6; Tue, 30 Nov 2010 13:31:29 +0100 (CET) Received: from pps.filterd (out [127.0.0.1]) by out.fsec.sm.srv.amis.hr (8.14.3/8.14.3) with SMTP id oAUCMQPj016510; Tue, 30 Nov 2010 13:31:29 +0100 Received: from smtp.amis.hr (smtp.sm.srv.amis.hr [192.168.106.39]) by out.fsec.sm.srv.amis.hr with ESMTP id svxvx83a0-1; Tue, 30 Nov 2010 13:31:28 +0100 A-Original-Client-UID: 188.129.107.2 splivalo Received: from [192.168.10.1] (cpe-188-129-107-2.dynamic.amis.hr [188.129.107.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: splivalo) by smtp.amis.hr (Postfix) with ESMTPSA id A2ABE287; Tue, 30 Nov 2010 13:31:28 +0100 (CET) Message-ID: <4CF4EEA0.6010409@megafon.hr> Date: Tue, 30 Nov 2010 13:31:28 +0100 From: Mario Splivalo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 MIME-Version: 1.0 To: Dimitri Fontaine CC: pgsql-performance@postgresql.org Subject: Re: Simple database, multiple instances? References: <4CF244DA.70206@megafon.hr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2010-11-30_07:2010-11-30, 2010-11-30, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1011300042 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/407 X-Sequence-Number: 41431 On 11/30/2010 12:45 PM, Dimitri Fontaine wrote: > Mario Splivalo writes: >> I have simple database schema, containing just three tables: >> >> samples, drones, drones_history. >> >> Now, those tables hold data for the drones for a simulation. Each simulation >> dataset will grow to around 10 GB in around 6 months. >> >> Since the data is not related in any way I was thinking in separating each >> simulation into it's own database. That way it would be much easier for me >> to, at later date, move some of the databases to other servers (when dataset >> grows beyond the original server storage capacity limit). > > Do you intend to run queries across multiple simulations at once? If > yes, you want to avoid multi databases. Other than that, I'd go with a > naming convention like samples_ and maybe some > inheritance to ease querying multiple simulations. Nope, those 'realms' are completely separated, I'll just have hundreds of them. But each of them is in it's separate 'universe', they're not aware of each other in any way (i might be creating some statistics, but that is going to be really rarely). Mario