How do I use BulkLoader to accomplish this?

0 views
Skip to first unread message

Li

unread,
Jul 11, 2008, 11:46:21 AM7/11/08
to BulkLoader users
Hi,

Im using BulkLoader for the first time and Im having a little trouble.
Hope someone can help...

The situation is as follows:

Im loading multiple external libraries, starting as soon as my website
initializes. Each library corresponds to items necesary for each of
the website's sections. My bulkloader instance is limited to 1
connection and starts loading the library relative to my home
section... As soon as this first library is fully downloaded, the
website is available to the user.
The user can now select to go to section 4, for example, and we could
imagine that by now the bulkloader is dealing with the queue and
downloading item 2.
I need the bulkloader instance to pause downloading item 2 and get
started with item 4 right away and hence focus all bandwidth resources
to the requested section. Once item 4 is downloaded the bulkloader
instance should continue with the previously paused item 2.

Ive tryed many things but it doesnt work as I want it to: Ive tryed
exchanging item priorities between item 2 and 4, pausing the currently
loading item and forcing a loadNow on the requested item... but the
best scenario I get is that item 4 starts to download immediatly but
item 2 does not stop downloading. It is as if BulkLoader is not
respecting the number of connections I specified for it on its
construction.

Well, any help would be greatly appreciated. If I can manage to make
this work, BulkLoader and I should go a long way in webdesign, it
would be extremely useful for me.

Thanks!!

Arthur Debert

unread,
Jul 12, 2008, 11:47:46 AM7/12/08
to BulkLoader users
Hi Paleblue.

The easiest way to do this is to have one BulkLoader instance for each
section. Then you can start the "home" loader as soon as the site
starts and the other loaders depending on which section the user
chooses. You can also use pauseAll and resumeAll if the user changes
his mind before a section is fully loaded.

Cheers
Arthur Debert
Reply all
Reply to author
Forward
0 new messages