rejetto forum

paging with many files

XCanG · 11 · 17062

0 Members and 1 Guest are viewing this topic.

Offline XCanG

  • Occasional poster
  • *
    • Posts: 32
  • .do impossible  beat unbeatable
    • View Profile
    • Driver
Hello! Can you improve it somehow change pages? I would be very happy ^_^°

PS interface translated into my language, it does not pay any attention


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i see you have 15k files in your folder.
On my i7 with SSD it took 24 seconds to get 2k files the first time, and 10 seconds later.
I bet you are getting very terrible times with your configuration,  how can it be acceptable?
you should reorganize your files in more folders.


Offline XCanG

  • Occasional poster
  • *
    • Posts: 32
  • .do impossible  beat unbeatable
    • View Profile
    • Driver
i see you have 15k files in your folder.
On my i7 with SSD it took 24 seconds to get 2k files the first time, and 10 seconds later.
I bet you are getting very terrible times with your configuration,  how can it be acceptable?
you should reorganize your files in more folders.
I took at first time in 3 minutes, and next time in 1 minute(all time, see next). But this is not a problem, the problem lies elsewhere. When the browser starts to load the page first: it hangs for 10 seconds; second: switches pages do not work properly. 1 page: 1—N; 2 page: 2—N+1; 1000 page: 1000—N+999 (P.S. original javascript don't changing) this is not good. The only solution is to display all.
About this folder: I can not reorganize it, and I'd rather use the links to the files in it, rather than a reference to the folder.
Quote
I bet you are getting very terrible times with your configuration
Do not have anything like this. HFS does not load my computer, and he has such a configuration:
Processor    x86 Family 15 Model 3 Stepping 4 GenuineIntel ~2999 MHz
Memory(RAM)   2 304,00 MB
Hard Disk    WDC WD2001FASS-00W2B0 2 TB


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
for me 3 minutes and 1 minute is a terrible time, but if it's not a problem for you...

i tested the paging and it's working fine here: page 2 is not showing any file in common with page 1.
I see your template is customized. I guess you broke something while customizing.
Try yourself the default template and see.


Offline XCanG

  • Occasional poster
  • *
    • Posts: 32
  • .do impossible  beat unbeatable
    • View Profile
    • Driver
Try yourself the default template and see.
hmm. In a default template page switcher working good, but in my template I didn't change this javascript. How return working this script without starting a new template?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
the javascript relies on the things that are on the page, so you can broke it even by only changing too much on the page.

There's no easy way to fix your template, it takes a programmer to work on it.


Offline crazyboris

  • Tireless poster
  • ****
    • Posts: 140
    • View Profile
compare the code from your own template and the code from the default template.
do a backup on your own template and copy paste the script from default page and see if it works.


Offline XCanG

  • Occasional poster
  • *
    • Posts: 32
  • .do impossible  beat unbeatable
    • View Profile
    • Driver
crazyboris, that's the problem. The original script and the one in the tpl-file are the same. And I have not changed it. Maybe there are some another dependent parts of the code?

rejetto, if I start to do it all over again, chances are that get on the same thing, because all I was doing it: stylized design (css) and translated into my language all the titles and error pages.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
as i said, the javascript probably relies on the content of the page.
So the same script may not work after your changes.
What you can do is
1. backup your tpl
2. ensure the backup is ok, you don't want to loose your template :)
3. put the default template
4. test the template to see the problem doesn't exist
5. introduce changes from your template, step-by-step
6. at every step, test to see if the problem appears, so you know that latest step introduced it
7. you can eventually post the accused change here on the forum, so that someone may help you


Offline XCanG

  • Occasional poster
  • *
    • Posts: 32
  • .do impossible  beat unbeatable
    • View Profile
    • Driver
I forgot to write on time.

The problem was only one line:
<script type="text/javascript" src="/jq.js"></script>
Here I include my jQuery, but rather just another version 1.8.3
And with that line problem was solved:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
Still, it is possible to use the library 1.8.3 instead 1.4.4?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
when you update jquery compatibility is not always an automatic thing.
Sometimes you need to change the scripts.