To further help contain your data, you can keep the database name by
the month only.
This way you can further reduce some amount of hard-coding.
I had used a similar solution in RDBMS apps where I empty/truncate a
table before I start loading into it the first time.
This way, I always had atleast 11 months of data on-hand.
Also, depending upon the usage, you can abstract the fact that data is
going into different DBs using just a few "API" like functions - to
insert, update, query data. The functions can evaluate the target
database internally and - if you ever choose to move to a single
database, you would be still ok.
On Jun 3, 11:35 am, Amit Manjhi <
amitman...@gmail.com> wrote:
> Hi,
>
> I wanted to get the group's perspective on how best to organize the
> following use case.
>
> 1. The application can receive a fair amount of data per day.
> 2. Most of this data is just being logged, apart some minimal computation
> done using just the most recent data, say received in last few minutes.
> 3. All the data must be available but the size of the database must be