Question: I have a website hosted under a subdomain for testing purposes and have tried to validate the html and css using w3 validator and jigsaw. Depending on the URL I use - <http://alt.example.com> (9 frameset type errors 4.01 Strict, CSS3 pass) OR <http://www.example.com/alt> (passes HTML5 / fails CSS3 183 errors, mostly vendor extensions). Why do the links validate differently and which one should I be concerned with? Any ideas on how to go about fixing them would be great. 

Mystique Theme,
Mystique-Child Theme (with its own style.css using @import url for core.css),
WordPress 3.4

Answer: 
Yeah connection pooling will help but yes you have to find out the right numbers for live connection or pool size based on which load will be on database. 

```
    from psycopg2.pool import SimpleConnectionPool
    from contextlib import contextmanager

    dbConnection = "dbname='dbname' user='postgres' host='localhost' password='postgres'"

    # pool define with 10 live connections
    connectionpool = SimpleConnectionPool(1,10,dsn=dbConnection)

    @contextmanager
    def getcursor():
        con = connectionpool.getconn()
        try:
            yield con.cursor()
        finally:
            connectionpool.putconn(con)

    def main_work():
        try:
            # with here will take care of put connection when its done
            with getcursor() as cur:
                cur.execute("select * from \"TableName\"")
                result_set = cur.fetchall()

        except Exception as e:
            print "error in executing with exception: ", e

```
I think connection pooling is the best thing to do if this application is to serve multiple clients and concurrently.