Upwork All skils Test Answers >> Upwork answers of Django >> Complete Django Quiz Answers
Question: Consider two Django QuerySets
query_set_1 and query_set_2 from two different models. Which of the
following code snippets is the most performant when concatenating the
two QuerySets into one list?
The Answer of this quiz is ' from itertools import chain result_list = list(chain(query_set_1,query_set_2))'
The Answer of this quiz is ' from itertools import chain result_list = list(chain(query_set_1,query_set_2))'
No comments:
Post a Comment