I have to build an app that has many (~15) interdependent selection
fields that come from large datasets across multiple different types
of databases.

For example, field A might have 10 values in a drop down, and when the
user selects "FOO", then field B's drop down gets populated with 30
choices only applicable to "FOO". Then a selection in B of "BAR"
causes drop down C to get populated with 100 choices only applicable
to FOO/BAR. And so on.

The 2 ways I can think of to do this are:

1) each time a field is chosen send an ajax request to get the values
for the dependent fields

or

2) pull all the data when the page is initially rendered and do it all
on the browser without going back to the server

Obviously, the first will cause a lot of delay each time a field is
chosen, whereas the second will cause a big delay to first load the
page, but then it would be responsive after that.

What I am wondering is, are there any other strategies for a problem
like this? How have people here dealt with a situation like this?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY43Y-E%3DDKHCM5M0_FUTR8CaLO2LMMgbxDQ40qfgAasmXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to