Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
deploying pyramid apps on heroku
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ottavio  
View profile  
 More options Jun 19 2012, 3:40 am
From: Ottavio <otta...@campana.vi.it>
Date: Tue, 19 Jun 2012 00:40:33 -0700 (PDT)
Local: Tues, Jun 19 2012 3:40 am
Subject: deploying pyramid apps on heroku

Hi, I am testing heroku as a platform to deploy pyramid apps.

I notice an extremely low performance (2 seconds to provide a page) and I
am wondering what can be the reason. I am not using sqlalchemy, I have my
custom sql methods with psycopg2 and that have proven on other platforms to
be fast.

I still suspect that the database is the bottleneck, particularly with
establishing the connection. Do you have experience with heroku? Are you
facing the same problem? And how do you solve it? I am thinking about using
a persistent connection, but I don't know how to do it...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dougzor  
View profile  
 More options Jun 20 2012, 1:51 pm
From: dougzor <doug.mor...@gmail.com>
Date: Wed, 20 Jun 2012 10:51:54 -0700 (PDT)
Local: Wed, Jun 20 2012 1:51 pm
Subject: Re: deploying pyramid apps on heroku

I've deployed a pyramid app to Heroku and used one of their MongoDB
providers with no lag issue whatsoever. If you suspect the issue is with
the database provider I'd contact them directly or you can try asking
Heroku.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandre Conrad  
View profile  
 More options Jun 20 2012, 2:39 pm
From: Alexandre Conrad <alexandre.con...@gmail.com>
Date: Wed, 20 Jun 2012 11:39:29 -0700
Local: Wed, Jun 20 2012 2:39 pm
Subject: Re: deploying pyramid apps on heroku

I'd recommend you log the time it takes for your pyramid views to respond,
as well as the model functions you call to make DB access to try to narrow
down where the bottleneck comes from.

2012/6/19 Ottavio <otta...@campana.vi.it>

--
Alex | twitter.com/alexconrad

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ottavio  
View profile  
 More options Jun 21 2012, 4:28 am
From: Ottavio <otta...@campana.vi.it>
Date: Thu, 21 Jun 2012 01:28:26 -0700 (PDT)
Local: Thurs, Jun 21 2012 4:28 am
Subject: Re: deploying pyramid apps on heroku

Il giorno mercoledì 20 giugno 2012 20:39:29 UTC+2, Alexandre Conrad ha
scritto:

> I'd recommend you log the time it takes for your pyramid views to respond,
> as well as the model functions you call to make DB access to try to narrow
> down where the bottleneck comes from.

Well, after making some tests and by using the debug toolbar, I was able to
find that the problem was establishing connections to the db. Thus I
inserted a mechanism for connection pooling and I was able to get a 16x
speed increase.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »