Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: OT: Scalable web application architecture

by greywolf (Priest)
on Dec 07, 2005 at 16:09 UTC ( #514877=note: print w/ replies, xml ) Need Help??


in reply to Re^2: OT: Scalable web application architecture
in thread OT: Scalable web application architecture

I have some experience with an online reservation system.

You say that you have 1 database for each property, 400 in total with the same schema. It sounds like you should have all the properties in a single database. You can then link all your pricing, seasons and availablity etc to each property using your unique property id.

My guess is that you are getting slowed down with all the database connects required for each query. Plus you will be repeating the same query on each database (400 times ouch).



mr greywolf


Comment on Re^3: OT: Scalable web application architecture
Re^4: OT: Scalable web application architecture
by badaiaqrandista (Pilgrim) on Dec 07, 2005 at 23:48 UTC

    That's how the database structure when I inherited the software. That's also why I created this 'search cache' thingy. I want to put all things in one table to speed up searching. But it becomes too overloaded with SELECT, INSERT, and UPDATE queries at the same time.

    Changing the whole database structure is something I don't want to do right now because we don't have automated test that can give me security in mind.

    badaiaqrandista

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-10-24 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls