Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Wojtek Newsgroups: comp.lang.java.programmer Subject: Re: The first 10 files Date: Sat, 26 Jan 2013 21:20:44 -0800 Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <51041ff8$0$284$14726298@news.sunsite.dk> <1iop8bl8ysrfg$.rdxcxhgxuj1r$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="92c3b945ba89fdf5072f2811ba779245"; logging-data="17535"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jldYP0SQPjDA6QlS4e6mPVg2Y4Hl4NVA=" X-Newsreader: MesNews/1.08.03.00-gb Cancel-Lock: sha1:06j0bof7dLuB2UpY514JfjNcIQM= Xref: csiph.com comp.lang.java.programmer:21788 Arved Sandstrom wrote : > I'd be examining the entire problem in more detail before arriving at a > decent solution. I don't think most of the problem pertaining to offering > reasonable batches of files to a Java program for processing is something > that I'd address in Java anyway. Events are on a per-user basis, that is to say each user has their own event list. The events are observed when the user logs in. Might be today or next week. To keep server processing reasonable I want to limit the number of events sent back to the user at a time (10 was just a number I pulled out of the air, obviously some tuning is required, and might even be dynamic depending on how busy the rest of the system is). I have no control over the number of events, how often they occur, nor how often a user logs in to look at them. 30K might be the high end, though I need to cover it if I get a busy event set and a lazy user. I might even set up a DB table for each user and store each event file as it comes in. Then use the DB to get the file names. Still white-boarding this... -- Wojtek :-)