Batch Import (pseudo)Random Insertion Order Batch Import (pseudo)Random Insertion Order
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Batch Import (pseudo)Random Insertion Order

Started by TruCaliberPimp, October 13, 2005, 07:47:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TruCaliberPimp

As previously indicated, I have a nice CPG installation running otherwise perfectly. Apache 2.0.56; PHP version: 5.0.4 - OK; mySQL version: 4.0.16-standard; Coppermine version: 1.3.4; gdlib2 enabled; no other applications latched on like phpBB, etc. All is working elite.

However, I am noticing that when I do batch importation, that the DB records are not inserted in the same order as the files are listed in the filesystem. I assume this is because gdlib2 is parallel processing a bunch of files at once and the insert order is determined by a first available sort of mechanism...and since not all source files are the same size and in fact vary quite a bit, this means larger files will get to the insert step long after they otherwise would be expected to based on filesystem order.

This is an irritant because I want my representative album thumbnail to always be the first image in the filesystem list, but I can't seem to guarantee this other than to manually uncheck all, check only the first, import that, then go back and check the rest, then import them. A real kludge majore.

Is it configurable to instruct gdlib to handle files stepwise rather than in a gang? Have I correctly identified the issue? Any other advice on how to get the outcome I desire? Thanks,

TCP

TruCaliberPimp

C'mon guys, is that such a scary question? Why is everybody so afraid to even try? ;)

Seriously, am I all wet on my description of events? Thanks,

TCP


kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

TruCaliberPimp

That is very cute Thu and Kego, but I gave it a full DAY before I kvetched. :) So if by a few you mean like 24++, then yeah, you're right. I know for-free software is not going to have a hotline, and that is cool, it just seemed a little lame that others with less daunting questions were answered ahead of me in line, is all.  Note the humble question I asked of whether I was even completely barking up the wrong tree.

Whenever you think you can fit me in Thu, I am ready, thanks,

TCP

Nibbler

I think you're probably correct, but it would not be a simple task to rewrite the batch add system. This mod will process the pics in series, perhaps you could use or modify that method.

TruCaliberPimp

Hi again Nibbler, thanks for helping out again.

In your link you said:

Here we go, upload this into your coppermine directory and call it timer.php (I hardcoded it, so sue me ) then go there, you know the drill.

It will keep reloading until all the pics are added if you set it to, so you can start it and leave it unattended for hours until it finishes, even with php set with a very low max_execution_time (ignore the fatal error). Not recommended for shared hosting environments unless you are vewy vewy careful.

Note: Auto reload needs js support.


OK, did that and uploaded. I see this is a separate form and you use a sleep() to get this done. OK, thanks for the try. I was hoping for something more configurable to simply import stepwise.

It was very nice of you to get back to me, thanks again.

TCP

Joachim Müller

please ask questions on a particular mod as a reply to the thread that deals with the mod.

TruCaliberPimp

Sorry GauGau, I was including the info from the link Nibbler posted. Tryin' to be helpful, happy to comply in future. :)

TCP