Thanks for the reply! I will check out the bulk loader if needed. It
looks pretty cool.
As for now, yesterday I think I came up with a quick solution that is
working pretty good, surprisingly. For now I am focusing on loading
the thumbnail grids.
I make a 2 second timer that starts in the load function. The timer is
reset in the onProgress function. I stop the timer in the onComplete.
If the timer runs out, I close the loader and retry loading it. I
allow it to retry 3 times. So basically if the load hangs at any
point, it will close and retry. So far it fixed all of the issues that
we were seeing. Pretty cool.
What do you think of that approach?
/ben
On Aug 20, 4:42 pm, David Knape <
tkd...@gmail.com> wrote:
> My LoaderQueue simply enqueues Loader requests. You give it a Loader
> instance, and tell it what URL to load and an optional priority and
> loadingContext. There is a prioritized queue inside that handles
> errors and advances the queue as neeeded. It's also "threaded" so, it
> will load 4 at a time by default. See the Image UI Component for
> implementation. The reason this is useful if for the issue you
> described. Sending out all those HTTP requests at once just causes
> problems sometimes.
>
> RequestQueue is similar in that it is based on the same queue class,
> but it is for IRequest instances. I use this for everything except
> images/swfs. It does have retry functionality. The LoaderQueue does
> not. Also, notes that you will need to keep a static/global instance
> of the loader queue, as it is not a singleton by design.
>
> Meanwhile, for your purposes, I would check out BulkLoader.
http://code.google.com/p/bulk-loader/