Friday, August 30, 2019

Re:

Can You Provide Some Example

On Fri, Aug 30, 2019 at 2:47 PM Budi Hermansyah <budi.hermansyah.3g@gmail.com> wrote:
Hi Shakil, 
better you use elastic search for indexing your data from database or other tools like ES, the purpose is for indexing your data from your database.
you can create modelling in ES too for you to speed you loading data...

Hope it help you...

Regards,


On Fri, Aug 30, 2019 at 2:51 AM Shakil Ahmmed <shakilfci461@gmail.com> wrote:

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.

--
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/CAHGmjWXO-LabtzvOVs3s8DjojkXxQEGit1f9iS1z5n%3DspSN%3DEA%40mail.gmail.com.


--

--
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%2BEpJfwPRD4DCqn4Eu-mndFesD0aTH-c04ntAkDTUcLjWvgoCA%40mail.gmail.com.

No comments:

Post a Comment