Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Migrating to static structure?

by PodMaster (Abbot)
on Aug 01, 2002 at 02:16 UTC ( [id://186655]=note: print w/replies, xml ) Need Help??


in reply to Migrating to static structure?

If no ~ get rid of the NFS if you can, that can be a big performance killer. Reformat your SQL queries, and change your "views" (simplify the final presentation to the user).

Employ caching, unless you already have, but it sounds like you haven't. With the amount of SELECT's that go around here on perlmonks, the only reason it does as well as it does is due to caching.

Seeing how most of the time, most of your stuff is static, a good caching mechanism will help a lot, but it would make sense to go the way of building static web pages, ala WebMake.

If yes - keep the parts that are truly static static, and only the parts that really need to be dynamic, dynamic. I mentioned WebMake above, and I suggest you look into it, if only for the idea of what can be done.

Another idea, although potentially complicated, is to mix the static and dynamic, via (i)Frame's and or (i)Layer's. Depending on your target audience, this can work out real well.

Having no idea of what you're doing mod_perl side, and having only dealt with Apache::Registry, I suggest you invest into a mod_perl book, if you haven't already, so you can beef up your mod_perl stuff, and employ a smart caching scheme.

As for what kind of caching scheme, I'm not really sure, not knowing anything about your database structure or said program, but you might wanna investigate DB_File (Building a Large-scale E-commerce Site with Apache and mod_perl) or Cache::Cache depending on your platform.

I have made available a win32 ppm of BerkleyDB/DB_File with one of the latest BerkleyDB's(4 something) available on my win32 ppm repository, in case you want something fancy ;)

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Migrating to static structure?
by physgreg (Scribe) on Aug 01, 2002 at 12:17 UTC
    You might also try running EXPLAIN on your MySQL queries, then putting in appropriate indices. This will make selects much quicker, but inserts slightly slower. It sounds like you are doing quite a few more rows than you need. If you decide to use indices, be careful with LIKE clauses, as initial wildcards (LIKE %foo) won't use them.
Re: Re: Migrating to static structure?
by pit (Initiate) on Aug 01, 2002 at 08:41 UTC
    At first - thanks for your reply.

    As for now NFS seems not to be a preformance killer - right now all the templates and other static files are on NFS server and it seems to work very well. I'm not sure how it will look like heavier traffic on NFS...
    Your idea with mixing dynamic and static content with Frames or Layers seems to be interesting and I already see some places where it can by deployed.
    Obviously I'll also take a look on some caching scheme befeore going completly to static

    Anyway, thanks for help and making me think a bit :-)
    Peter

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://186655]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found