latest web2py and nginx+uwsgi script - 2.2.1 Stable)
Just wondering...
--
[]'s
Marco Tulio
--
[]'s
Marco Tulio
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
to be shared but that
isn't applicable to the public-side of the site. I can't use your solution
to make any gains there.
On Wednesday, August 29, 2012 2:25:11 AM UTC-4, Bruce Wade wrote:
Ok see attached.
1) I left the default auth tables they can also be filtered out in the
same way.
2) I
) Should the 'public' site be part of the same application at all,
or should it be a separate light-weight application with a login form that
then points to the 'real' application?
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http
to the 'real' application?
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
--
I am righting a quick example app as I don't think anyone is really
understanding what I am saying :D I will email it within the next 30 mins.
On Tue, Aug 28, 2012 at 10:36 PM, Bruce Wade bruce.w...@gmail.com wrote:
Conditional models will work, however not with the default design as you
may
to do get it right based on the input provided
and perhaps it will be some benefit to others who won't make the same
mistakes I made. :)
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal
, pbreit pbreitenb...@gmail.com wrote:
I'd be surprised if model processing is your biggest problem. Have you
reviewed all your queries for optimization opportunities? Cache, cache and
more cache? Indexes?
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http
thinking whether having a different file per action
would be worth it to improve speed.
On Tue, Jul 17, 2012 at 9:40 AM, Bruce Wade bruce.w...@gmail.com wrote:
LOL well the before and after performance improvements from moving the
models has proven it to be a major problem. So yes models
/db.py runs (runs only for actions in
controllers/default.py)
models/default/index/db.py runs (runs only for action index() in
controllers/default.py)
This speeds things a lot.
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http
that owns Apache process is the one that owns the
web2py tree or at least has full access to it.
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm 63:3)
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http
\\web2py\\gluon\**\main.py, line 143, in
copystream_progress
copystream(source, dest, size, chunk_size)
File C:\\dashboard\\web2py\\gluon\**\fileutils.py, line 374, in
copystream
data = src.read(size)
IOError: request data read error
--
--
Regards,
Bruce Wade
http://ca.linkedin.com
think
it should be logged or silently ignore and the request dropped?
Massimo
On Monday, 16 July 2012 10:00:14 UTC-5, Bruce Wade wrote:
I am using the latest stable still.
On Mon, Jul 16, 2012 at 7:58 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Which web2py version
in db gets a bit slower.
I am planning to test sessions in redis.
On Mon, Jul 16, 2012 at 1:01 PM, Bruce Wade bruce.w...@gmail.com wrote:
That I/o warning shouldn't take down your site I have the same issue
with linode. I think sessions need to be done differently especially on
high load sites
Split models folder into multiple folders 1 per controller then define
tables used for each controler.. for more fine control add folders inside
the folders you just created with one per controller action and define only
tables used for that action.
On Jul 16, 2012 2:47 PM, Anthony
)
IOError: request data read error
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
--
in regardless,
therefore, splitting things up into multiple model files wouldn't gain me
anything or am I wrong?
Thanks in advance.
--
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal
:
please anyone can tell me about the web2py and it's community and if i
learn it can i find a job easily
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
database at this point.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
lucas
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
, even the psycopg2 driver is working either.
lucas
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
- if you can change the way nginx talks to uwsgi - instead of local tcp
connection use file socket - you want hammer tcp stack with a lot of
connections.
in uwsgi config use: socket = /var/run/uwsgi.socket
in nginx config use: uwsgi_pass unix:///var/run/uwsgi.socket;
--
--
Regards,
Bruce Wade
http
Remove any requires you have in you models will reduce function calla
On Jul 7, 2012 3:53 PM, howesc how...@umich.edu wrote:
do you have anything in models that run queries? i made that mistake once
and it slowed things down a lot!
On Friday, July 6, 2012 11:51:38 AM UTC-7, wdtatenh wrote:
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
tell me what's going on? If I run this program in IDLE
it returns the bing results so it is definitely a web2py issue.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http
'}}
{{=results}}
On Thursday, 5 July 2012 21:20:59 UTC+1, Bruce Wade wrote:
I am assuming by your error inside results.html you have a variable
defined as results however you are passing a tuple blekkoresults,bingresults
we would need to see results.html
On Thu, Jul 5, 2012 at 1:16 PM, adohertyd wrote
It shouldn't look at your javascript console, if you are using ajax to call
this.
On Thu, Jul 5, 2012 at 1:30 PM, adohertyd adoher...@hotmail.com wrote:
Thanks Bruce will try that. Why does 'return blekkoresults' work though?
On Thursday, 5 July 2012 21:24:53 UTC+1, Bruce Wade wrote:
Ok
UTC+1, Bruce Wade wrote:
It shouldn't look at your javascript console, if you are using ajax to
call this.
On Thu, Jul 5, 2012 at 1:30 PM, adohertyd wrote:
Thanks Bruce will try that. Why does 'return blekkoresults' work though?
On Thursday, 5 July 2012 21:24:53 UTC+1, Bruce Wade wrote
2012 21:35:44 UTC+1, Bruce Wade wrote:
No problem, I have ran into that problem when I was first learning :D
On Thu, Jul 5, 2012 at 1:34 PM, adohertyd wrote:
Yeah it works now. Thanks very much Bruce much appreciated. Still have
quite a bit to learn about all of this stuff.
On Thursday, 5
Python is
generally poorly supported in shared hosting environments.
Does your host provide any information about deploying Python apps?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers
is pretty complete but not yet promoted. I found
python very easy to learn and such a nice language. Web2py plus python is a
dream come true.
Peter
On Tuesday, 3 July 2012 23:24:42 UTC+1, Bruce Wade wrote:
Yes I have already been planing that I also have connections in packt who
asked if I
that the user can change their password from the default
features of auth without getting an email with the link? It seems the only
way is the link to get an email with a link to change the password.
BR,
Jason Brower
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http
://web2py.com/books/default/chapter/29/2
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
No if you know HTML/CSS/Javascript you can do whatever you want to the
frontend very easily.
On Tue, Jul 3, 2012 at 10:28 AM, ANIKET KADAM aniketkadam1...@gmail.comwrote:
is it very difficult to customize front end in web2py?
On Tue, Jul 3, 2012 at 9:54 PM, Bruce Wade bruce.w...@gmail.com
/contact
http://127.0.0.1:8000/special
will all work.
On Tue, Jul 3, 2012 at 10:36 AM, ANIKET KADAM aniketkadam1...@gmail.comwrote:
thank you bruce but how much time period is needed to master web2py
On Tue, Jul 3, 2012 at 10:02 PM, Bruce Wade bruce.w...@gmail.com wrote:
No if you know HTML/CSS
-web-development.com/ just to get the taste
of it, but can we create a website like ( Scribd / Slideshare / youtube etc
i mean big / large)
On Tue, Jul 3, 2012 at 10:15 PM, Bruce Wade bruce.w...@gmail.com wrote:
Well that depends, if you mean master it in knowing how to create models,
views
often given valuable
feedback to the group about how to ensure that web2py sites do run
efficiently and I have learnt from your feedback.
Peter
On Tuesday, 3 July 2012 19:07:50 UTC+1, Bruce Wade wrote:
My site is probably the largest site using web2py at this time.
https
Just watch the first page the how many ads views pulls the last record ID
inserted refresh that page a few times to see how active it is.
On Tue, Jul 3, 2012 at 2:54 PM, Bruce Wade bruce.w...@gmail.com wrote:
What do you mean the site isn't in production? Or course the site is in
production
find it a little humorous when you think it is still in
development mode and not in production :D
On Tue, Jul 3, 2012 at 3:00 PM, Bruce Wade bruce.w...@gmail.com wrote:
Just watch the first page the how many ads views pulls the last record ID
inserted refresh that page a few times to see how active
commers to
join this incredible site, Please full-fill the following form.
Maybe the tech part is done, and it's time for the copywriters?
--
We're looking for good Linux people:
http://www.tiger-computing.co.uk/jobs
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http
,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
Please help
thank you
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
current one of many servers.
On Sat, Jun 23, 2012 at 7:09 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
On Friday, 22 June 2012 15:33:52 UTC-5, Bruce Wade wrote:
Hi,
I have 2 questions:
First what is the process of having images uploaded from 1 or more
servers to be stored
backend?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
--
,
searchCategory=searchCategory,
searchForm=searchForm,
)
On Fri, Jun 15, 2012 at 7:53 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
can you show us some code?
On Friday, 15 June 2012 15:42:02 UTC-5, Bruce Wade wrote:
I have just found if I have a secondary database with no tables
.
massimo
On Saturday, 16 June 2012 17:17:55 UTC-5, samuel bonilla wrote:
web2py 2.0 will supports python 3.3 ?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http
ret = self.cursor.execute(*a, **b)
InternalError: current transaction is aborted, commands ignored until
end of transaction block
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http
information you can provide, the better we are able
to help.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
, Jun 13, 2012 at 4:08 PM, davidjensen wrote:
cannot establish connection to www.web2py.com
2012-06-13T17:11
Me too :(
why is this happening constantly?
Javier
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com
3 front
end servers 3 database servers.
If there is a bigger site please help us scale, ideally share the problems
you have faced. :D
Once we get the new union software and banner advertising software all the
numbers will increase dramatically.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com
Hi,
What are the advantages and disadvantages of running web2py as Linux
daemon? How would you scale this solution? Does this change how requests
load models on every request? Would this make running the application much
faster because web2py would always be running?
--
--
Regards,
Bruce Wade
...)
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
This is how Auth and Crud work:
http://code.google.com/p/web2py/source/browse/gluon/tools.py#898,
http://code.google.com/p/web2py/source/browse/gluon/tools.py#3056.
Probably the best approach when you need to access db from multiple methods.
Anthony
--
--
Regards,
Bruce Wade
http
issue. Is there a resolution?
On Wednesday, April 25, 2012 5:29:09 PM UTC-4, Bruce Wade wrote:
Hi I randomly get a EOFError this doesn't always happen and I have no idea
what is causing it.
Traceback (most recent call last):
File /home/developer/projects/yaw/**gluon/restricted.py, line
to be
downloaded. What is the correct way to accomplish this?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
of attack. Web2py's upload/download mechanism has this
taken care of. And I'd test this download separately in IE, in any case.
I've stumbled on IE's quirks with such file names before...
Regards
On Saturday, June 2, 2012 9:08:28 AM UTC+2, Bruce Wade wrote:
http://127.0.0.1:8000/yaw/en/**static
?
Anthony
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
Does this support multi-language mainly Chinese?
On Jun 2, 2012 2:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
https://github.com/mdipierro/canvas
restrictive than .* if you can.
But yeah, that's the idea.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
(
file_match = r'(.*)$',# legal file (path) name
),
)
On Sat, Jun 2, 2012 at 8:57 PM, Bruce Wade bruce.w...@gmail.com wrote:
Ok thanks I will give it a try.
On Sat, Jun 2, 2012 at 8:51 PM, Jonathan Lundell jlund...@pobox.comwrote:
On Jun 2, 2012, at 6:32 PM, Ricardo Pedroso wrote:
FWIW
,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
i-track is the winner I already have it integrated into my project and will
build off of it.
On Fri, Jun 1, 2012 at 7:01 AM, Bruce Wade bruce.w...@gmail.com wrote:
issue tracker there is an error when you click on projects on the demo not
a good example :D
i-track looks like a very good
,
Jason
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
Hi,
Is anyone looking for some full time work? Could possibly lead to permanent.
Goals optimization and scale. As well as adding to the advertising
platform. Real-time banner ads.
If you are interested send me an email with some work you have done and
expect rate of pay in CAD
Regards,
Bruce
for ExclusiveLock on tuple (10,126) of relation 16935 of database
16386; blocked by process 20969. HINT: See server log for query details.
CONTEXT: SQL statement SELECT 1 FROM ONLY public.ads x WHERE id
OPERATOR(pg_catalog.=) $1 FOR SHARE OF xAny suggestions?
--
--
Regards,
Bruce Wade
http
translate with google analytics)
On Wed, May 23, 2012 at 6:56 AM, greaneym grean...@gmail.com wrote:
It is fine if you want to figure out vocabulary, but it is not very good
with grammatical structures, yet. It keeps improving though.
On Tuesday, May 22, 2012 5:56:44 PM UTC-5, Bruce Wade
Has anyone tried this before? http://translate.google.com/translate_tools
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
52095 function calls (50779 primitive calls) in 0.085 seconds
Ordered by: internal time
List reduced from 727 to 80 due to restriction 80
On Mon, May 14, 2012 at 12:06 PM, Bruce Wade bruce.w...@gmail.com wrote:
Yes, I have started moving everything from models to custom api modules
{{=URL('controller','action', args=[arg1, arg2])}}
On May 20, 2012 10:18 AM, Ashraf Mansour ad...@aqar-riyadh.com wrote:
I tried this
h3 {{=A(' . ',_href=URL('action'))}}/param1/param2 /h3
and it did not work.:)
what is the right way of doing it?
On Saturday, December 3, 2011
along with the values of param1 and param2
appended. Of course, you'll need some way to set the values of param1 and
param2, and there may be some other event that should trigger the
replacement -- it depends what you're trying to do.
Anthony
--
--
Regards,
Bruce Wade
http
means
they cannot be set on the server side by web2py. Of course, I don't know
what he's actually doing on the client side, so this exact code may or may
not be relevant. Do you have an alternative suggestion?
Anthony
On Sunday, May 20, 2012 7:57:10 PM UTC-4, Bruce Wade wrote:
Why would you do
jquery?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
the values of param1 and param2 )
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
not work double check if /var/web2py is the correct path of
your web2py installation.
--
Roberto De Ioris
http://unbit.it
JID: robe...@jabber.unbit.it
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness
was not experienced with either Apache or Nginx and found Nginx a
*lot* easier to understand. And it seems pretty unanimous that Nginx is
more performant across the board.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com
in apache)? I was trying to see an example or find it in uwsgi docs to
no
avail.
http://projects.unbit.it/uwsgi/wiki/ParsingOrder
--
Roberto De Ioris
http://unbit.it
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http
Not sure using conditional models is premature optimization it is just
better design.
On Tue, May 15, 2012 at 12:14 PM, pbreit pbreitenb...@gmail.com wrote:
I'd better prevent running into performance problems
I generally advise against premature optimization.
--
--
Regards,
Bruce Wade
*
def index():
return db(db.guardian).select(0
*# controller/dog.py*
def index():
return db(db.dog.guardian == db.guardian.id).select()
It could be a little better, a singleton, a way to define references
automatically etc...
--
--
Regards,
Bruce Wade
http://ca.linkedin.com
guardian)
class Meta:
tablename = dog
migrate = False
...
I will try it today...
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http
For example see attached, it isn't complete but will give a better example.
On Tue, May 15, 2012 at 1:43 PM, Bruce Wade bruce.w...@gmail.com wrote:
Well one example is my location class, which contains countries,
provinces, and cities models. Having one class allows me to write a single
API
?
Aren't many/most of those 85k-100k function calls going to
examining/parsing all those tabledefs?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
Youadworld is HUGE some tables even have 50 columns.
On May 13, 2012 2:59 PM, pbreit pbreitenb...@gmail.com wrote:
135 tables to run YouAdWorld??
in production the
model does not change (usually) at runtime.
Yes, definitely turn off migrations -- you can do so for the entire
connection via:
db = DAL(..., migrate_enabled=False)
Also, compile the app -- I believe that particularly speeds up the views.
Anthony
--
--
Regards,
Bruce
a
db.rollback() at the beginning of the controller.
Are you using any web2py scripts (cron or the like)? check that you do
not keep the transaction open if the process is long. Use alway
db.commit!
mic
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http
Yeah I am going through all my controllers right now to see if I can use
the folder solution. Which way would be faster? Folders or modules?
On Sat, May 12, 2012 at 8:52 AM, Anthony abasta...@gmail.com wrote:
On Saturday, May 12, 2012 10:51:59 AM UTC-4, Bruce Wade wrote:
I am starting
This works by only creating the tables that I define per action. Do you for
see any problems using this method?
On Sat, May 12, 2012 at 9:06 AM, Bruce Wade bruce.w...@gmail.com wrote:
Yeah I am going through all my controllers right now to see if I can use
the folder solution. Which way would
trying to guess where the application is
wasting *its* time.
mic
2012/5/12 Anthony abasta...@gmail.com:
On Saturday, May 12, 2012 12:06:28 PM UTC-4, Bruce Wade wrote:
Yeah I am going through all my controllers right now to see if I can use
the folder solution. Which way would be faster
Shouldn't be as I have deleted that default function.
On May 12, 2012 4:36 PM, Bruno Rocha rochacbr...@gmail.com wrote:
Do you have images being seved by web2py using the default download
function?
On Sat, May 12, 2012 at 7:51 PM, Bruce Wade bruce.w...@gmail.com wrote:
Ok so I started
with query for represent or other use?
Recently I solve speed problem I had by caching dict building query.
I never thought that building a dictionary could be that expensive in term
of cpu load.
Richard
On Thu, May 10, 2012 at 5:13 PM, Bruce Wade bruce.w...@gmail.com wrote:
Yes
)
) )
lista = TABLE( *lista )
return dict( lista = lista )
View:
{{extend 'layout.html'}}
{{block statusbar}}
h4Admin felület/h4
{{end}}
h2AdjustPage/h2
{{=lista}}
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http
released and that is why I ask :(
2012. május 10., csütörtök 9:14:14 UTC+2 időpontban Bruce Wade a
következőt írta:
WOW not a good idea:
for row in db( db.file_**properties.id 0 ).select(
If you have a lot of records that is going to kill your memory.
On Thu, May 10, 2012 at 12:10 AM
időpontban Bruce Wade a
következőt írta:
That is how python is. If you want something to clear the memory as soon
as you are done with it you need C++ :D
On Thu, May 10, 2012 at 12:27 AM, szimszon szims...@gmail.com wrote:
Yes I know but it happens over type the mem usage is linearly growing
. május 10., csütörtök 9:41:31 UTC+2 időpontban Bruce Wade a
következőt írta:
http://effbot.org/pyfaq/why-**doesnt-python-release-the-**
memory-when-i-delete-a-large-**object.htmhttp://effbot.org/pyfaq/why-doesnt-python-release-the-memory-when-i-delete-a-large-object.htm
That is a little more
instead of 1 instance per record in the database.
If you make it load only a single instance your problem will go away. I am
pretty sure this might be covered in the web2py book.
On Thu, May 10, 2012 at 6:14 AM, Bruce Wade bruce.w...@gmail.com wrote:
Their is no grantee that python will use
Hi,
Have you ever fixed this problem? I am finding it very very hard to handle
high load websites, also using postgres. I think the bottle neck is the DB
layer as even using the admin tool causes timeout issues. Last night I had
2.3k concurrent users for 5 hours which caused one of the servers
a lower memory usage?
On Thu, May 10, 2012 at 4:14 AM, Bruce Wade bruce.w...@gmail.comwrote:
for row in db( db.file_**properties.id 0 ).select(
--
Bruno Rocha
[http://rochacbruno.com.br]
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
pbreitenb...@gmail.com wrote:
Is your traffic from serving ads or users coming to your web site? Have
you exhausted caching opportunities?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers
. That is it.
2012. május 10., csütörtök 16:34:49 UTC+2 időpontban Bruce Wade a
következőt írta:
Using direct sql query or DAL is going to cause the exact same problem
in this situation.
On Thu, May 10, 2012 at 7:28 AM, szimszon szims...@gmail.com wrote:
It's postgres:// in a
Version 1.99.7 (2012
be more than twice the number of cores.
mic
2012/5/10 Bruce Wade bruce.w...@gmail.com:
Web2py is on 3 different servers/nodes, postgresql is on it's own node
with
8GB ram.
CPU is being used by uwsgi so web2py. The slowness I think is from DB
queries as when you load a page without
of each solar plant.
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com
1 - 100 of 484 matches
Mail list logo