TG Admin too slow

2 views
Skip to first unread message

Mauro Ciancio

unread,
Dec 19, 2009, 1:55:09 PM12/19/09
to TurboGears
Hello everyone,

I've developed an app using tg 2.0 and it uses the admin frontend to
do the
CRUD stuff.
The problem is that the interface is too slow, I mean, it takes
about 25~30
seconds to load and not only the first time. Every time that I switch
to another
model takes the same time.
I've used wireshark to see what was happening and I realized that
the browser
reloads in every request all the css and the js files. These js are
from the
dojo library and sprox widgets.
I'd like to know if there's a workaround to solve this or if I'm
doing something
wrong.
When the browser request one of my own css, it sends the 'if-
modified-since'
header and the server response 'not modified'. But, with dojo and
sprox js
this doesn't happens.

Any ideas?
Cheers,
Mauro Ciancio.

Mark Ramm

unread,
Jan 4, 2010, 3:38:22 PM1/4/10
to turbo...@googlegroups.com
Hmm, the best solution is:

Have the admin's static files served up by the web-server not python.

See the documentation here:

* http://toscawidgets.org/documentation/ToscaWidgets/deploy.html

> --
>
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>
>
>

--
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

Lukasz Szybalski

unread,
Jan 7, 2010, 3:17:04 PM1/7/10
to turbo...@googlegroups.com

As Mark suggested,

1. deploy via apache and modwsgi.
2. If still slow I would try rum admin interface.


How big are your tables? I've used both on 70mb table and it browsed just fine?

Thanks,
Lucas

Diez B. Roggisch

unread,
Jan 7, 2010, 5:26:51 PM1/7/10
to turbo...@googlegroups.com
>
> How big are your tables? I've used both on 70mb table and it browsed just fine?


He's talking about page load time for static resources. Nothing todo
with table size.

Diez

Reply all
Reply to author
Forward
0 new messages