Wednesday, August 28, 2019


Firstly I Have More than 1 Million Data In my database , while i want to perform aggregation or annotation or filter it took huge time , i have to show all data at a time,,, i use select_related() for foreign key but i want to optimize database hitting , like i want to fetch all data from database in first database hit and convert them into dictionary or list and perform another queries into dictionary or list without hitting database i hope it can optimize database hit Example : In Laravel I Fetch All data from database and convert it into Array while i have to perform queries into it i convert them into collect() and perform queries , and it dont hit the database .
[a link ]:(https://laravel.com/docs/5.8/collections) !

I Can perform this in Django ???

--

--
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 it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BEpJfwCnMV_e5Th6HXTMSPQ%3DjeEFYzYjnV7WpXjvHm968mOrQ%40mail.gmail.com.

No comments:

Post a Comment