Re: Improve performance about concurrency request with heavy tasks that make the server freeze and down.

2024-07-23 Thread Chrea Chanchhunneng
yes, I have. as you see the image I attached is the profiled for function increase the time after concurrency increase, all the function is using pillow and wandimage. On Saturday, July 20, 2024 at 6:01:53 AM UTC+9 Ryan Nowakowski wrote: > Have you profiled your code to see what parts are takin

Re: Detect and address Django/Graphene performance issues

2023-12-09 Thread Jorge Bueno
Graphene which is seeing > extremely poor performance (specifically time-to-first-byte) when the GQL > object graph is nested more than a few levels deep and thousands of nodes > are included in the response body. > > We've optimized the SQL queries and they run on the order of

Detect and address Django/Graphene performance issues

2023-12-09 Thread Pete Doherty
Hi all, I'm working on a project that's using Django and Graphene which is seeing extremely poor performance (specifically time-to-first-byte) when the GQL object graph is nested more than a few levels deep and thousands of nodes are included in the response body. We've op

Re: Performance profiling Django Channels async consumers

2023-11-28 Thread Shaheed Haque
11:29:37 AM UTC-5 Filbert wrote: > >> We are heavily using Django Channels async consumers and haven't found a >> way instrument for performance profiling. >> >> We've tried NewRelic, but per their developers say they don't have >> support for Djang

Re: Performance profiling Django Channels async consumers

2023-11-28 Thread Filbert
crickets...sigh... On Monday, November 27, 2023 at 11:29:37 AM UTC-5 Filbert wrote: > We are heavily using Django Channels async consumers and haven't found a > way instrument for performance profiling. > > We've tried NewRelic, but per their developers say they don't

Performance profiling Django Channels async consumers

2023-11-27 Thread Filbert
We are heavily using Django Channels async consumers and haven't found a way instrument for performance profiling. We've tried NewRelic, but per their developers say they don't have support for Django Channels. We run certain websocket connections through Gunicorn, Uvicorn, Cha

Re: Slow Performance of Django Web App

2023-06-17 Thread Lucifer Black
ubject: Re: Slow Performance of Django Web App One important question, what webserver are you using? On Wed, Jun 14, 2023 at 10:34 AM Shaheed Haque mailto:shaheedha...@gmail.com>> wrote: Have you tried using https://django-debug-toolbar.readthedocs.io/en/latest/? It can be a little fiddlin

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
gt; invaluable in tracking down a few critical queries. > > On Sun, 11 Jun 2023, 20:00 Kunal Mittal, wrote: > >> I've a django application serving 10k+ users daily, that application has >> everything to be on the top of performance metrics but still some API's >>

Re: Slow Performance of Django Web App

2023-06-13 Thread Shaheed Haque
o application serving 10k+ users daily, that application has > everything to be on the top of performance metrics but still some API's > have high latencies, application serves lots of pages with nice css and > various images, on most the pages they are being served by s3 while on some >

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
; >> On Mon, Jun 12, 2023 at 9:46 AM Vishesh Mangla >> wrote: >> >>> Try cdn, and use Statics based on screen size >>> >>> On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, >>> wrote: >>> >>>> Lmao >>>> >>>

Re: Slow Performance of Django Web App

2023-06-13 Thread Vishesh Mangla
, 12 Jun, 2023, 11:14 Vishesh Mangla, >> wrote: >> >>> Lmao >>> >>> On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, >>> wrote: >>> >>>> I have read various docs on performance optimization, but still not >>>> getting

Re: Slow Performance of Django Web App

2023-06-13 Thread Nisha Jose
Mittal, >> wrote: >> >>> I have read various docs on performance optimization, but still not >>> getting what's taking to render templates and what's the bottleneck when >>> cache get cleared, I takes around 12 hours for application to run smoothly &g

Re: Slow Performance of Django Web App

2023-06-12 Thread 'Steven Mapes' via Django users
To start with I'd look at upgrading the project to the latest version of Django and Python as Python 3.10 and 3.11 have some performance improvements and you'll need to be on a Django 4 version to support them. That aside it sounds like you've got good caching architecture set

Re: Slow Performance of Django Web App

2023-06-11 Thread Vishesh Mangla
Try cdn, and use Statics based on screen size On Mon, 12 Jun, 2023, 11:14 Vishesh Mangla, wrote: > Lmao > > On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, wrote: > >> I have read various docs on performance optimization, but still not >> getting what's taking to re

Re: Slow Performance of Django Web App

2023-06-11 Thread Vishesh Mangla
Lmao On Mon, 12 Jun, 2023, 10:54 Kunal Mittal, wrote: > I have read various docs on performance optimization, but still not > getting what's taking to render templates and what's the bottleneck when > cache get cleared, I takes around 12 hours for application to run smoothly

Re: Slow Performance of Django Web App

2023-06-11 Thread Kunal Mittal
I have read various docs on performance optimization, but still not getting what's taking to render templates and what's the bottleneck when cache get cleared, I takes around 12 hours for application to run smoothly after that event. On Monday, June 12, 2023 at 10:53:06 AM UTC+

Re: Slow Performance of Django Web App

2023-06-11 Thread Kunal Mittal
jango application serving 10k+ users daily, that application has >> everything to be on the top of performance metrics but still some API's >> have high latencies, application serves lots of pages with nice css and >> various images, on most the pages they are being served

Re: Slow Performance of Django Web App

2023-06-11 Thread carlos
Hi, your read this docs https://docs.djangoproject.com/en/4.2/topics/performance/ and this too https://djangostars.com/blog/django-performance-optimization-tips/ maybe help you Cheers On Sun, Jun 11, 2023 at 1:00 PM Kunal Mittal wrote: > I've a django application serving 10k+ users dai

Re: Slow Performance of Django Web App

2023-06-11 Thread Mz Gz
What server do you use ? On Sun, 11 Jun 2023, 10:00 pm Kunal Mittal, wrote: > I've a django application serving 10k+ users daily, that application has > everything to be on the top of performance metrics but still some API's > have high latencies, application serves lots of

Slow Performance of Django Web App

2023-06-11 Thread Kunal Mittal
I've a django application serving 10k+ users daily, that application has everything to be on the top of performance metrics but still some API's have high latencies, application serves lots of pages with nice css and various images, on most the pages they are being served by s3 whi

Re: Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-20 Thread awe...@foxmail.com
in this way to make sure everything is going right in production. 在2023年4月18日星期二 UTC+8 07:14:36 写道: > I know you can run gunicorn with uvicorn workers. But the sync views will > be running sync, no longer gevent patched, meaning performance could > change. I’m also unsure if sync

Re: Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-17 Thread Chris Barber
I know you can run gunicorn with uvicorn workers. But the sync views will be running sync, no longer gevent patched, meaning performance could change. I’m also unsure if sync views are serialized into one thread if you don’t set DJANGO_ALLOW_ASYNC_UNSAFE, which could be a bottleneck. I did

Re: Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-16 Thread TITAS ONLINE MARKET
Thanks On Mon, 17 Apr 2023, 11:42 am Fortune Osho, wrote: > You can simply run gunicorn with unicorn workers... which is very > performance using uvloop... test it performance against pure gunicorn... > note that performance is not totally dependent on server used(a whole lot > o

Re: Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-16 Thread Fortune Osho
You can simply run gunicorn with unicorn workers... which is very performance using uvloop... test it performance against pure gunicorn... note that performance is not totally dependent on server used(a whole lot of things can affect performance like moddlewares, serialization etc) On Sun, Apr

Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-16 Thread Chris Barber
get a single async view one has to switch to uvicorn workers or similar, right? Now one is no longer getting the gevent patching for sync views, which could be a major impact on performance/scaling, and could trigger re-evaluation of the production deployment & tuning! Questions: 1. How to

Re: Performance regression when moving from 3.1 to 3.2 (same with 4)

2022-09-01 Thread Ryan Nowakowski
y queries when >moving from Django 3.1 to 3.2. And the performance hit appears to be the >same for Django 4. > >My backend is Postgres 14.2. > >My Django project has forums for different types of content. The forum app >consists essentially of 5 tables: > > 1. a

Performance regression when moving from 3.1 to 3.2 (same with 4)

2022-09-01 Thread Marc Parizeau
Hi, I am seing a sharp increase in execution time for some of my queries when moving from Django 3.1 to 3.2. And the performance hit appears to be the same for Django 4. My backend is Postgres 14.2. My Django project has forums for different types of content. The forum app consists

Django + uvicorn poor performance

2022-08-03 Thread Marcin Szpulak
I'm testing Django asgi performance using two very simple views. I'm running gunicorn and uvicorn in such a manner: 1. gunicorn core.wsgi --workers=1 --threads=1 --access-logfile=- core.wsgi:application uvicorn --workers 1 core.asgi:application 2. uvicorn --workers 1 core.asgi:a

Re: Django 3.0 -> 3.1 performance degradation

2022-05-07 Thread Jason
ght have open/closed issues about performance? On Friday, May 6, 2022 at 5:03:33 PM UTC-4 Jonatan Heyman wrote: > Hi! And thanks for the reply! > > I've read the release notes but couldn't see anything that popped out as > the possible cause. But I'm going to give them

Re: Django 3.0 -> 3.1 performance degradation

2022-05-06 Thread Jonatan Heyman
Hi! And thanks for the reply! I've read the release notes but couldn't see anything that popped out as the possible cause. But I'm going to give them another read. Currently, the app is running fine on 3.0, and I haven't started debugging what might be the cause. I started with a message to thi

Re: Django 3.0 -> 3.1 performance degradation

2022-05-05 Thread Antonis Christofides
Hi! This is a very interesting problem, and I'm afraid I'm not qualified to answer it. What I'd like to point out is that, if I had done all the work that you seem to have done, I would be tempted to start bisecting in between versions 3 and 3.1 in order to find the exact commit that causes the

Django 3.0 -> 3.1 performance degradation

2022-05-04 Thread Jonatan Heyman
Hi! I've recently upgraded an old Django app from Django 1.11 all the way up to Django 4.0. Even though the app is pretty large, the migration went smooth (or so I thought). However, when all tests passed and I deployed the app to production, I saw that the response time of the app took a signi

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-26 Thread Carlos R. Pacheco F.
The solution is to use select2 with ajax El vie, 25 feb 2022 a la(s) 19:58, Jacob Greene (jacobgreene1...@gmail.com) escribió: > If you're using model choice fields, it's very likely you are making an > SQL query for each form set. It should be pretty obvio

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-26 Thread Antonis Christofides
es for a week and I’m starting to lose it…lol Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows *From: *Jacob Greene <mailto:jacobgreene1...@gmail.com> *Sent: *Friday, February 25, 2022 5:58 PM *To: *django-users@googlegroups.com *Subje

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Steve Smith
Thanks for the suggestion. I really appreciate it. Steve From: django-users@googlegroups.com on behalf of Jacob Greene Sent: Friday, February 25, 2022 9:43 PM To: django-users@googlegroups.com Subject: Re: Slow page load performance with a large number of

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
o: *django-users@googlegroups.com > *Subject: *Re: Slow page load performance with a large number of formsets > (over 25) > > > > If you're using model choice fields, it's very likely you are making an > SQL query for each form set. It should be pretty obvious in the log with

RE: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Steve Smith
2 5:58 PM To: django-users@googlegroups.com<mailto:django-users@googlegroups.com> Subject: Re: Slow page load performance with a large number of formsets (over 25) If you're using model choice fields, it's very likely you are making an SQL query for each form set. It should be pretty o

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
If you're using model choice fields, it's very likely you are making an SQL query for each form set. It should be pretty obvious in the log with debug turned on. On Fri, Feb 25, 2022, 4:31 PM Ryan Nowakowski wrote: > Steven, are you using ModelFormSet? If so, Is it the initial query > that's sl

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Ryan Nowakowski
Steven, are you using ModelFormSet? If so, Is it the initial query that's slow? The form rendering? Or is it the POST back to the server that's slow? You can use django-debug-toolbar[1] to profile your page and get these metrics. Once you figure out what part is slowest, then you can optimize.

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-08 Thread Steven Smith
What is hard reload? On Monday, February 7, 2022 at 12:43:08 PM UTC-6 abdouli...@gmail.com wrote: > Try hard reload it's little bit faster > > On Mon, Feb 7, 2022, 18:12 Steven Smith wrote: > >> Did this issue ever get resolved? I'm experiencing the same thing. Once >> it hits 100 forms or so

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-07 Thread Abdulrahman Abbas
Try hard reload it's little bit faster On Mon, Feb 7, 2022, 18:12 Steven Smith wrote: > Did this issue ever get resolved? I'm experiencing the same thing. Once > it hits 100 forms or so it gets pretty slow. > > On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote: > >> Yes,

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-07 Thread Steven Smith
Did this issue ever get resolved? I'm experiencing the same thing. Once it hits 100 forms or so it gets pretty slow. On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson wrote: > Yes, if you want speed, using javascript and ajax is probably your best > bet. It will probably also

Re: OnlineBook - High Performance Django

2021-10-16 Thread Lalit Suthar
thanks for sharing Brent :) On Wed, 13 Oct 2021 at 17:44, Brent Clark wrote: > Good day Guys > > I got this off news.python.sc, and thought I would share in case anyone > misses it. > > https://lincolnloop.com/high-performance-django/index.html > > Definitely some tidbit

OnlineBook - High Performance Django

2021-10-13 Thread Brent Clark
Good day Guys I got this off news.python.sc, and thought I would share in case anyone misses it. https://lincolnloop.com/high-performance-django/index.html Definitely some tidbits of information, esp to areas of securing and performance improving. HTH Regards Brent -- You received this

Re: QuerySet performance on large datasets

2021-04-11 Thread Peter of the Norse
taff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user"; args=() (0.000) SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user&q

Re: QuerySet performance on large datasets

2021-02-12 Thread Peter of the Norse
bool(qs) is recommended when the queryset has already been run. If you do something like val = qs.earliest(some_property) if bool(qs) else None then there isn’t a performance gain because it still has to run qs.exists() to even see if there is a value. Later things like that will be

Re: Django ORM annotate performance

2021-01-15 Thread Naresh Jonnala
Hi, print(qs.query) and share. On Wednesday, January 13, 2021 at 11:25:06 PM UTC+5:30 pawe...@gmail.com wrote: > Hi all, > > I wanted to cross post my question / problem in regards to Django's ORM > `annotate` performance. Not sure if I should post it here on or Django >

QuerySet performance on large datasets

2021-01-12 Thread 'Juergen H' via Django users
Dear django users, when working on very large datasets (millions of items) and performing queries on it, I have a few questions regaring the performance. - From my understanding using `bool(qs)` is preferred over using `qs.exists()` when the queryset is used later on, as `bool(qs

Django Channels - Monitoring and Testing Performance in Prod

2021-01-05 Thread Myer Nore
I work on an app that has Django Channels 1 deployed in production with CPU-based auto-scaling. Most of the time, it works fine, but sometimes, when the site is busy and many users are utilizing the parts of our application that are channels-intensive, users are unable to utilize their websocke

Uploaded file performance

2020-11-12 Thread kern zhou
Hi, I am using the django to handle the file upload. In the view implementation, I am trying to write the uploaded file to disk, but it causes bad performance because writing the uploaded file to disk spend lots of time. Is any better solution to handle the file upload? Maybe create a detach

Re: Performance queries helps

2020-07-15 Thread carlos
7 in newscat7 %} > {{news7.name <http://news.name/>}} > {{news7.date|date:'Y-m-d'}} > {{news7.body|safe|truncatewords:20}} > {{news7.category.all.0}} >Read More > {% endfor %} > > > > On Sat, Jul 11, 2020 at 10:46 AM carlos wrote: > >

Re: Performance queries helps

2020-07-11 Thread damanjeet kaur
{% for news7 in newscat7 %} {{news7.name <http://news.name/>}} {{news7.date|date:'Y-m-d'}} {{news7.body|safe|truncatewords:20}} {{news7.category.all.0}} Read More {% endfor %} On Sat, Jul 11, 2020 at 10:46 AM carlos wrote: > Hi, i need any advice for

Re: Performance queries helps

2020-07-10 Thread Budi Hermansyah
di you ever try an elastic search for indexing our categories product to speed up? On Sat, Jul 11, 2020 at 12:16 PM carlos wrote: > Hi, i need any advice for performance queries > i have a model name Post > post have m2m categories and fk author > > the index page show

Performance queries helps

2020-07-10 Thread carlos
Hi, i need any advice for performance queries i have a model name Post post have m2m categories and fk author the index page show 7 categories in separated row i try performance this example queryset_global = Post.objects.filter(status__contains='publish').prefetch_related

channels_redis & async_to_sync performance problem

2020-03-29 Thread Chris
channel layer, performance is great. But when I use channels_redis in production, each call to group_send takes 2 seconds, because each time it needs to create a new redis connection. Here is the call stack: File "c:\my_project\core\my_project\channels\utils.py", l

Re: About Django performance

2020-02-28 Thread Integr@te System
Hi Freinds, Plz try some search example: https://python-socketio.readthedocs.io/en/latest/intro.html But first let us look at: https://www.djangoproject.com/conduct/ Thank. On Fri, Feb 28, 2020, 19:53 Motaz Hejaze wrote: > What is the type of data ?? > > What is the expected amount to be trans

Re: About Django performance

2020-02-28 Thread Motaz Hejaze
What is the type of data ?? What is the expected amount to be transfered by second ? Its not only django , its the server type and the database type .. On Fri, 28 Feb 2020, 1:36 pm Gil Obradors, wrote: > Hi ! > I 'm curious too! > > How much data? > > With CPU and RAM, may be the problem will

Re: About Django performance

2020-02-28 Thread Gil Obradors
Hi ! I 'm curious too! How much data? With CPU and RAM, may be the problem will be in Wifi Channel, instead of at the server. You will explain us ;) Thank you! Missatge de 이바울 del dia dv., 28 de febr. 2020 a les 11:33: > I'm trying to build a server. > > Data transmitted from the wireless co

About Django performance

2020-02-28 Thread 이바울
I'm trying to build a server. Data transmitted from the wireless communication device enters the database via this server. We will use Message Queue to avoid losing data (VernaMQ). I'm curious to see if Django is a suitable server for sending and receiving data from multiple wireless device

Re: Docker performance on Mac OS X

2019-09-23 Thread Chris Wedgwood
iles being included > and being watched over. SO if you have thousands to tens of thousands of > files in your volume mount symlinks, performance is going to be poor. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: Docker performance on Mac OS X

2019-09-23 Thread Jason
. My 2018 MBP has 5 cores and 10GB RAM allocated. However, docker is very sensitive to the amount of files being included and being watched over. SO if you have thousands to tens of thousands of files in your volume mount symlinks, performance is going to be poor. -- You received this messa

Docker performance on Mac OS X

2019-09-23 Thread Chris Wedgwood
Hi All I generally use the Django Cookiecutter project to start my projects and have started using *docker* for my local development. However I have started to get some really awful performance with pageloads taking 30-40 seconds. I am know considering stopping using docker entirely. Has anyone

Django 2.2 mongoengine query pagination performance

2019-08-07 Thread Felix Tillyard
Hi, We are facing an issue while upgrading from Django 2.1.10 to 2.2.4. We are using mongoengine (http://mongoengine.org/) to pull some documents from a Mongo database. Following the upgrade performance of this is significantly worse. We ran some profiling using pyspy (https://github.com

How to download campaign performance report with filter by list of id in campaign_name

2019-06-27 Thread dark knight645
Hi, I have for example a bunch of campaigns with name's pattern like this : 'this is a gdn campaign - 233432' , Now I am using Python SDK to download report for each gdn campaign name, but filter by this number 233432 as an id. so my report query looks like this: I can request each report by c

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-11 Thread John
t; > > > > > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *John > *Sent:* Monday, December 10, 2018 9:19 AM > *To:* Django users > *Subject:* Re: Poor Performance for Form Rendering In Django 1.11 > >

RE: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread Matthew Pava
Performance for Form Rendering In Django 1.11 Yes, the form has about a dozen selects, with two in particular being larger - the country and the currency fields - that probably have a couple hundred options each. I have since removed those two fields which leaves about 10 selects with about 80

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread John
fluctuate, the 12 field form was taking a little over 750ms, and the new form with 10 fields totals 375ms. So the two larger fields accounted for about half the time, but even the reduced form is still a major problem. Regarding the reduced version, I cannot say how much the performance issue relates to

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread James Bennett
On Mon, Dec 10, 2018 at 6:29 AM John Lehmann wrote: > So my takeaway from what you are saying is that no one is running a > production site with a Django select field to render a country or currency > option (e.g., django-countries or django-money), because either of these > would have well over

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread John Lehmann
ld be called out in the Django documentation for the default rendering option? I'm also surprised neither of those mainstream libraries would mention something about this. Adding 500+ms isn't in the realm of "tweaking" performance, for most serious sites it would be a complete fai

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread James Bennett
change would not be made to the framework that would cause such an > unacceptable performance (500+ms added). Kind of disappointing to spend a > whole week upgrading only to end up wanting to downgrade again. > The Django template language is not really optimized for speed of rendering

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread John Lehmann
framework that would cause such an unacceptable performance (500+ms added). Kind of disappointing to spend a whole week upgrading only to end up wanting to downgrade again. I think your idea is a good workaround to explore if I cannot get any answers, and I appreciate it. I did briefly try to set this up

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-07 Thread Simon Charette
has about a dozen selects with a > total of several hundred options. Most of those options are for the > currency and country selects, along with about 80 other options. There is > an even larger list for "stores" but it is loaded via AJAX so it should not > be a factor h

Poor Performance for Form Rendering In Django 1.11

2018-12-07 Thread John
total of several hundred options. Most of those options are for the currency and country selects, along with about 80 other options. There is an even larger list for "stores" but it is loaded via AJAX so it should not be a factor here. Performance was fine on Django 1.8, but after u

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-28 Thread PASCUAL Eric
jango-Rest-Framework for performance reasons, despite not needing an externally-consumable API? Hey Eric, thanks for getting back to me again! As I don't want to have an externally-consumable API for this application (would be more of a liability than asset for me right now), I am most likely going

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-27 Thread Tyler Lynch
ide to use DRF, but I'm okay deferring this decision for now. Do you think there's any reason to use DRF despite not needing an externally-consumable API? Would using an internally-consumed API have different benefits? It seems the consensus is that adding DRF is more likely to li

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-27 Thread Tyler Lynch
er 2018 12:29:10 UTC-4, Andréas Kühne wrote: > > Hi again, > > I don't think there is any performance reason to add DRF. You should > architect your application in a way that the database is the main speed > issue (for example, avoid doing loops in python) - then you can

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-26 Thread PASCUAL Eric
:18:49 PM To: Django users Subject: Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API? Hi Eric, Thanks for the response You mention that adding DRF can actually make you lose some potential benefits from caching? Might i ask

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-26 Thread Andréas Kühne
Hi again, I don't think there is any performance reason to add DRF. You should architect your application in a way that the database is the main speed issue (for example, avoid doing loops in python) - then you can add som caching to the queries that you know can be cached. That would giv

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-26 Thread Tyler Lynch
> future. > > > Regards > > > Eric > -- > *From:* django...@googlegroups.com < > django...@googlegroups.com > on behalf of Andréas Kühne < > andrea...@hypercode.se > > *Sent:* Friday, October 26, 2018 9:29:40 AM > *To:* django

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-26 Thread Tyler Lynch
there no performance reason to adopt DRF? I'm basically just running a crud app. One thing I was hoping DRF might've been able to help me with though is importing/exporting the data as csv's as well. I'm not sure though if it's more expedient to just use the csv reade

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-26 Thread PASCUAL Eric
Eric From: django-users@googlegroups.com on behalf of Andréas Kühne Sent: Friday, October 26, 2018 9:29:40 AM To: django-users@googlegroups.com Subject: Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API? Hi, I really don'

Re: Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-26 Thread Andréas Kühne
e about your use case to understand it better :-) Regards, Andréas Den fre 26 okt. 2018 kl 03:44 skrev Tyler Lynch : > I have no need for an externally consumable API, but I am interested in > using Django-Rest-Framework simply for performance reasons. > > I'm led to beli

Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-25 Thread Tyler Lynch
I have no need for an externally consumable API, but I am interested in using Django-Rest-Framework simply for performance reasons. I'm led to believe that by decoupling my front and back end and then simply consuming the DRF api within views, that I can setup a better caching system?

Re: I created a table view based on django that loads the whole data and is now having performance issues

2018-09-08 Thread Savvey Chauhan
if you want to increase data related performance , useselect_related or prefetch related On Sat, Sep 8, 2018 at 11:35 PM xcode101 wrote: > What do you mean by table view? More so how is data loaded? > > On Saturday, 8 September 2018 19:21:54 UTC+3, brajesh kumar wrote: >>

Re: I created a table view based on django that loads the whole data and is now having performance issues

2018-09-08 Thread xcode101
What do you mean by table view? More so how is data loaded? On Saturday, 8 September 2018 19:21:54 UTC+3, brajesh kumar wrote: > > I created a table view based on django that loads the whole data and is > now having performance issues.. > > Any suggestion would be apprecia

I created a table view based on django that loads the whole data and is now having performance issues

2018-09-08 Thread brajesh kumar
I created a table view based on django that loads the whole data and is now having performance issues.. Any suggestion would be appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django performance issue that's troubling

2018-08-24 Thread Jim Illback
o-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, August 24, 2018 1:16 PM To: Django users Subject: Re: Django performance issue that's troubling Matthew, thanks - that was my original code, but even hidden, it has to fill in all possible values - 37K - so it takes multiple s

Re: Django performance issue that's troubling

2018-08-24 Thread Tim Vogt (Tim Vogt)
ers@googlegroups.com>] On Behalf Of Jim Illback >> Sent: Friday, August 24, 2018 1:16 PM >> To: Django users >> Subject: Re: Django performance issue that's troubling >> >> Matthew, thanks - that was my original code, but even hidden, it has to fill >> in

Re: Django performance issue that's troubling

2018-08-24 Thread Jim Illback
Subject: Re: Django performance issue that's troubling Matthew, thanks - that was my original code, but even hidden, it has to fill in all possible values - 37K - so it takes multiple seconds. Vijay, I’ll try your suggestion. Thanks much, Jim On Aug 24, 2018, at 11:01 AM, Matthew Pava

RE: Django performance issue that's troubling

2018-08-24 Thread Matthew Pava
your explanation. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, August 24, 2018 1:16 PM To: Django users Subject: Re: Django performance issue that's troubling Matthew, thanks - that was my original code, but even hidden, it h

Re: Django performance issue that's troubling

2018-08-24 Thread Jim Illback
y, August 24, 2018 12:59 PM To: django-users@googlegroups.com<mailto:django-users@googlegroups.com> Subject: Re: Django performance issue that's troubling Please reply to the user group "But, in order to have the update work, it needs the ForeignKey to the parent in the form"

RE: Django performance issue that's troubling

2018-08-24 Thread Matthew Pava
To: django-users@googlegroups.com Subject: Re: Django performance issue that's troubling Please reply to the user group "But, in order to have the update work, it needs the ForeignKey to the parent in the form" As far as I know, it doesn't need to (if the entry already exi

Re: Django performance issue that's troubling

2018-08-24 Thread Vijay Khemlani
uired field. If I add it to the form, > Django has to allow all potential update values to be shown. What’s the way > out of this mess? > > Thanks, > Jim > > > Begin forwarded message: > > *From: *Vijay Khemlani > *Subject: **Re: Django performance issue that's t

Re: Django performance issue that's troubling

2018-08-24 Thread Vijay Khemlani
hen, I loading about 37K client records. Search >> queries perform almost instantaneously. A paginated list of support records >> with 40 pages and 10 clients per page comes back in half a second. Great >> performance. >> >> However, when I click on any record in the l

Re: Django performance issue that's troubling

2018-08-23 Thread Jim Illback
alf a second. Great performance. However, when I click on any record in the list to go to update a specific support record for that specific client (it uses the PK in the URL so is a direct call to the UpdateView routine), I get about 10 second response times and these kind of statistics from

Re: Django performance issue that's troubling

2018-08-23 Thread Vijay Khemlani
th 40 pages and 10 clients per page comes back in half a second. Great > performance. > > However, when I click on any record in the list to go to update a specific > support record for that specific client (it uses the PK in the URL so is a > direct call to the UpdateView routine), I get

Django performance issue that's troubling

2018-08-23 Thread Jim Illback
queries perform almost instantaneously. A paginated list of support records with 40 pages and 10 clients per page comes back in half a second. Great performance. However, when I click on any record in the list to go to update a specific support record for that specific client (it uses the PK in the

Re: django template rendering performance

2018-07-09 Thread Andrew Paulsen
ing templates us > a matter of the web server then users browsers > > On Tue, 10 Jul 2018, 00:56 Masoud Sadri, <mailto:masoud.m...@gmail.com>> wrote: > > Hi, > when rendering django(v 1.11) templates, is there any performance > difference between py

Re: django template rendering performance

2018-07-09 Thread mottaz hejaze
i dont think so . rendering templates , though rendering templates us a matter of the web server then users browsers On Tue, 10 Jul 2018, 00:56 Masoud Sadri, wrote: > Hi, > when rendering django(v 1.11) templates, is there any performance > difference between python 2.7 and 3.5? &

django template rendering performance

2018-07-09 Thread Masoud Sadri
Hi, when rendering django(v 1.11) templates, is there any performance difference between python 2.7 and 3.5? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

  1   2   3   4   5   6   7   8   >