Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11672

Re: Java DB rotation

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Java DB rotation
Date Tue, 31 Jan 2012 08:38:42 +0100
Lines 46
Message-ID <9opk4aFpfhU2@mid.individual.net> (permalink)
References <n7jei7582sh0m08frucvasubaaiplnvc2s@4ax.com> <jg7j6n$8ho$1@localhost.localdomain> <s4kei7lifs11l4l7gb0ci5vde0bh2qld4k@4ax.com> <4f2752d1$0$283$14726298@news.sunsite.dk>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace individual.net dTl3ym/mF2WUi5FYDBqGIg9ugh6DbWoBQ0IJ/nIHwL244Iy9c=
Cancel-Lock sha1:oLyka5Ijbo3+QFaLafIiiZ2lEDg=
User-Agent Mozilla/5.0 (Windows NT 6.0; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
In-Reply-To <4f2752d1$0$283$14726298@news.sunsite.dk>
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11672

Show key headers only | View raw


On 31.01.2012 03:32, Arne Vajhøj wrote:
> On 1/30/2012 9:24 PM, Jim Lee wrote:
>> On Tue, 31 Jan 2012 02:21:11 +0000 (UTC), Martin Gregorie
>> <martin@address-in-sig.invalid> wrote:
>>> On Mon, 30 Jan 2012 18:08:04 -0800, Jim Lee wrote:
>>>> I have a Java server controller that read/write to Database table
>>>>
>>>> Java server will start read / write to a new DB table every week/monday
>>>> e.g.
>>>> table-1-2-2012 table-1-9-2012 table-1-16-2012 table-1-23-2012 ... etc
>>>>
>>> What problem are you using table rotation to solve?
>>>
>>> What would prevent you from using a single table containing datestamped
>>> rows which are archived and/or deleted the rows after "cycle length"
>>> days?
>>
>> my main problem is how to make sure "how to get the correct table name
>> to read/write to" depending what day in the week
>>
>> start a new DB table is a must since it's going through some other
>> REST backend layer
>
> There is nothing in REST that requires such a table structure.
>
> And it would be better to fix the bad code requiring such
> a table rollover than to make other apps bad to work with it.

Another question: Jim, what database are you using?  If the instance 
requiring multiple tables is afraid of volume the typical solution to 
this issue is called "partitioning".  If your database supports it, 
that's typically the way to go for such kind of data.

Cheers

	robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Java DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 18:08 -0800
  Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:12 -0500
    Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:14 -0500
      Re: Java DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 18:20 -0800
        Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:34 -0500
        Re: Java DB rotation Robert Klemme <shortcutter@googlemail.com> - 2012-01-31 08:36 +0100
    Re: Java DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 18:17 -0800
      Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:20 -0500
        Re: Java DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 18:23 -0800
          Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:31 -0500
  Re: Java DB rotation Martin Gregorie <martin@address-in-sig.invalid> - 2012-01-31 02:21 +0000
    Re: Java DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 18:24 -0800
      Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:32 -0500
        Re: Java DB rotation Robert Klemme <shortcutter@googlemail.com> - 2012-01-31 08:38 +0100
          Re: Java DB rotation Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-01-31 12:57 -0600
            Re: Java DB rotation Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-01-31 13:03 -0600
              Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-31 20:32 -0500
                Re: Java DB rotation Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-02-01 13:49 -0600
                Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-02-01 19:23 -0500
            Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-31 20:31 -0500
          Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-31 20:30 -0500
  Re: Java DB rotation Arne Vajhøj <arne@vajhoej.dk> - 2012-01-30 21:35 -0500
    Re: Java DB rotation Lew <noone@lewscanon.com> - 2012-01-30 22:54 -0800
  Re: Java DB rotation George Neuner <gneuner2@comcast.net> - 2012-02-02 14:05 -0500
  Re: Java DB rotation Rajiv Gupta <rajiv@invalid.com> - 2012-02-08 02:08 +1100

csiph-web