PDA

View Full Version : deleting files problem


Ronald
7th of November 2003 (Fri), 14:39
Does anyone know how to delete files more quickly?

Deleting files using the ftp function (red button) takes really long. A lot longer than uploading files. (Is this a bug Pekka?)

I can delete the files without the EE ftp function. But how do I delete the links etc. The remove button is just as slow! Is there a quicker way of delting files srtaight from the database after deleting the files? Or can this function become faster?

Thanks,

Ronald

Pekka
7th of November 2003 (Fri), 16:46
ronald wrote:
Does anyone know how to delete files more quickly?

Deleting files using the ftp function (red button) takes really long. A lot longer than uploading files. (Is this a bug Pekka?)

They both use same ftp code. But if delete can't find the file (e.g. after unsuccessfull upload there will be no files) the ftp will have a certain delay while it'll try to re-check that file's existence. That behaviour is something I cannot affect. If the files are there it should quite fast.

Of course there are several ftp server softwares out there, and even same server's different versions may be very different in speed. Some serverd admins like to add all sorts of ip checks and security stuff which really slows down ftp login.

I can delete the files without the EE ftp function. But how do I delete the links etc. The remove button is just as slow! Is there a quicker way of delting files srtaight from the database after deleting the files? Or can this function become faster?

If remove command is slow then that is really strange as it does not use ftp at all. Perhaps the slow part is optimizing the database after changes.

But I'll add something like "force delete photo from database" which will simply just delete the photo from database, all linking to it etc, without even checking for files.

There is also one thing that should be noted: the text "If photo is removed and it does not exist in any other exhibition EE will create a backup exhibition to store it." is wrong. That was how 1.3 did, but 1.5 will just "not remove" and not create endlessly long loops of annoying backup exhibitions: now you can hide or move photos so easily they are not needed.

Ronald
7th of November 2003 (Fri), 18:39
Thanks Pekka,

I think the 'Force delete photo from database will really help out.'

Gr.

Ronald

kd_121
9th of November 2003 (Sun), 02:45
I have not experienced the slowness you mention. Have deleted many photos and it is snappy.

Ronald
9th of November 2003 (Sun), 16:33
Maybe it has to do with my ftp server? I use Filezilla. It is also the case that it takes longer when I am trying to delete links of which the files don't exist. Remove takes just as long.

Pekka
10th of November 2003 (Mon), 16:13
ronald wrote:
Maybe it has to do with my ftp server? I use Filezilla. It is also the case that it takes longer when I am trying to delete links of which the files don't exist. Remove takes just as long.

Ftp protocol is quite simple: EE sends ftp server a command "delete file xyz.jpg". It is entirely up to ftp server to handle this task. Some do it fast, some slow. Some delay when file is not found, some skip it quickly. I could do a timeout setting, but that would drop the entire connection in x seconds....

Often there are settings in ftp server which will make it quite a lot faster, like disabling reverse DNS checks. Only problem is that in rented virtual server you seldom can change those by yourself.