| Resource | Value |
|---|---|
| User CPU time | 358.867 msec |
| System CPU time | 22.121 msec |
| Total CPU time | 380.988 msec |
| Elapsed time | 404.042 msec |
| Context switches | 589 voluntary, 14 involuntary |
| Timing attribute | Timeline | Milliseconds since navigation start (+length) |
|---|
| Query | Timeline | Time (ms) | Action | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SELECT "lego_part"."id",
"lego_part"."part_num", "lego_part"."name", "lego_part"."part_cat_id", "lego_part"."notes", "lego_part"."is_active", "lego_part"."search_vector", "lego_part"."ldraw_part_id", "lego_part"."bricklink_part_id", "lego_part"."ignore_color_errors", "lego_part"."part_material_id", "lego_part"."is_bricklink_minifig", "lego_part"."is_bricklink_book", "lego_part"."is_bricklink_gear", "lego_part"."show_generic_part_msg", "lego_partcategory"."id", "lego_partcategory"."name", "lego_partcategory"."part_count", "lego_partcategory"."img", "lego_partcategory"."slug", "lego_partmaterial"."id", "lego_partmaterial"."name", "lego_partoverlay"."part_id", "lego_partoverlay"."length", "lego_partstats"."part_id", "lego_partstats"."num_sets", "lego_partstats"."num_mocs", "lego_partstats"."num_set_parts", "lego_partstats"."num_moc_parts", "lego_partstats"."y1", "lego_partstats"."y2", "lego_partstats"."is_dirty" FROM "lego_part" INNER JOIN "lego_partcategory" ON ("lego_part"."part_cat_id" = "lego_partcategory"."id") INNER JOIN "lego_partmaterial" ON ("lego_part"."part_material_id" = "lego_partmaterial"."id") LEFT OUTER JOIN "lego_partoverlay" ON ("lego_part"."id" = "lego_partoverlay"."part_id") LEFT OUTER JOIN "lego_partstats" ON ("lego_part"."id" = "lego_partstats"."part_id") WHERE "lego_part"."part_num" = 'minifig-headwear' LIMIT 21SELECT ••• FROM "lego_part" INNER JOIN "lego_partcategory" ON ("lego_part"."part_cat_id" = "lego_partcategory"."id") INNER JOIN "lego_partmaterial" ON ("lego_part"."part_material_id" = "lego_partmaterial"."id") LEFT OUTER JOIN "lego_partoverlay" ON ("lego_part"."id" = "lego_partoverlay"."part_id") LEFT OUTER JOIN "lego_partstats" ON ("lego_part"."id" = "lego_partstats"."part_id") WHERE "lego_part"."part_num" = 'minifig-headwear' LIMIT 21 |
0.61 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(122) part = get_or_none(Part.all_objects, part_num=slug1) /home/nathan/rb/site/./rb/utils.py in get_or_none(605) return manager.get(**kwargs) |
|||||||||||||||||||||
|
SELECT "lego_partcategory"."id",
"lego_partcategory"."name", "lego_partcategory"."part_count", "lego_partcategory"."img", "lego_partcategory"."slug" FROM "lego_partcategory" WHERE "lego_partcategory"."slug" = 'minifig-headwear' LIMIT 21SELECT ••• FROM "lego_partcategory" WHERE "lego_partcategory"."slug" = 'minifig-headwear' LIMIT 21 |
0.13 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(131) part_cat = get_or_none(PartCategory.objects, slug=slug) /home/nathan/rb/site/./rb/utils.py in get_or_none(605) return manager.get(**kwargs) |
|||||||||||||||||||||
|
SELECT "lego_part"."id",
"lego_part"."part_num", "lego_part"."name", "lego_part"."part_cat_id", "lego_part"."notes", "lego_part"."is_active", "lego_part"."search_vector", "lego_part"."ldraw_part_id", "lego_part"."bricklink_part_id", "lego_part"."ignore_color_errors", "lego_part"."part_material_id", "lego_part"."is_bricklink_minifig", "lego_part"."is_bricklink_book", "lego_part"."is_bricklink_gear", "lego_part"."show_generic_part_msg" FROM "lego_part" INNER JOIN "lego_partstats" ON ("lego_part"."id" = "lego_partstats"."part_id") WHERE ("lego_part"."is_active" AND "lego_partstats"."num_sets" > 0 AND "lego_part"."part_cat_id" IN (65)) LIMIT 1000SELECT ••• FROM "lego_part" INNER JOIN "lego_partstats" ON ("lego_part"."id" = "lego_partstats"."part_id") WHERE ("lego_part"."is_active" AND "lego_partstats"."num_sets" > 0 AND "lego_part"."part_cat_id" IN (65)) LIMIT 1000 |
5.33 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(146) search_results = get_part_search(request, params) /home/nathan/rb/site/./lego/views/search.py in get_part_search(179) results = sort_user_parts(request, results) /home/nathan/rb/site/./lego/filters.py in sort_user_parts(1588) return PartSorter.sort_user_parts(user_parts, sort_by, sort_dir, prefix=prefix, group_by=group_by, group_by_db=group_by_db) /home/nathan/rb/site/./lego/constants/parts.py in sort_user_parts(29) if len(parts.select_related(None).prefetch_related(None)) <= 1: |
|||||||||||||||||||||
|
SELECT "lego_part"."id",
"lego_part"."part_num", "lego_part"."name", "lego_part"."part_cat_id", "lego_part"."notes", "lego_part"."is_active", "lego_part"."search_vector", "lego_part"."ldraw_part_id", "lego_part"."bricklink_part_id", "lego_part"."ignore_color_errors", "lego_part"."part_material_id", "lego_part"."is_bricklink_minifig", "lego_part"."is_bricklink_book", "lego_part"."is_bricklink_gear", "lego_part"."show_generic_part_msg", "lego_partcategory"."id", "lego_partcategory"."name", "lego_partcategory"."part_count", "lego_partcategory"."img", "lego_partcategory"."slug", "lego_partmaterial"."id", "lego_partmaterial"."name", "lego_partoverlay"."part_id", "lego_partoverlay"."length", "lego_partstats"."part_id", "lego_partstats"."num_sets", "lego_partstats"."num_mocs", "lego_partstats"."num_set_parts", "lego_partstats"."num_moc_parts", "lego_partstats"."y1", "lego_partstats"."y2", "lego_partstats"."is_dirty" FROM "lego_part" INNER JOIN "lego_partstats" ON ("lego_part"."id" = "lego_partstats"."part_id") INNER JOIN "lego_partcategory" ON ("lego_part"."part_cat_id" = "lego_partcategory"."id") INNER JOIN "lego_partmaterial" ON ("lego_part"."part_material_id" = "lego_partmaterial"."id") LEFT OUTER JOIN "lego_partoverlay" ON ("lego_part"."id" = "lego_partoverlay"."part_id") WHERE ("lego_part"."is_active" AND "lego_partstats"."num_sets" > 0 AND "lego_part"."part_cat_id" IN (65)) LIMIT 1000SELECT ••• FROM "lego_part" INNER JOIN "lego_partstats" ON ("lego_part"."id" = "lego_partstats"."part_id") INNER JOIN "lego_partcategory" ON ("lego_part"."part_cat_id" = "lego_partcategory"."id") INNER JOIN "lego_partmaterial" ON ("lego_part"."part_material_id" = "lego_partmaterial"."id") LEFT OUTER JOIN "lego_partoverlay" ON ("lego_part"."id" = "lego_partoverlay"."part_id") WHERE ("lego_part"."is_active" AND "lego_partstats"."num_sets" > 0 AND "lego_part"."part_cat_id" IN (65)) LIMIT 1000 |
4.33 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(146) search_results = get_part_search(request, params) /home/nathan/rb/site/./lego/views/search.py in get_part_search(179) results = sort_user_parts(request, results) /home/nathan/rb/site/./lego/filters.py in sort_user_parts(1588) return PartSorter.sort_user_parts(user_parts, sort_by, sort_dir, prefix=prefix, group_by=group_by, group_by_db=group_by_db) /home/nathan/rb/site/./lego/constants/parts.py in sort_user_parts(53) return sorted(parts, key=lambda x: x.sort_by_part_color(group_by=group_by), reverse=reverse) |
|||||||||||||||||||||
|
SELECT "lego_element"."id",
"lego_element"."part_id", "lego_element"."color_id", "lego_element"."element_id", "lego_element"."design_id", "lego_element"."descr", "lego_element"."color_descr", "lego_element"."last_download_attempt", "lego_element"."num_download_attempts", "lego_element"."is_export_id", "lego_element"."is_active" FROM "lego_element" INNER JOIN "lego_color" ON ("lego_element"."color_id" = "lego_color"."id") WHERE ("lego_element"."is_active" AND "lego_element"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952)) ORDER BY "lego_color"."name" ASC, "lego_element"."element_id" ASCSELECT ••• FROM "lego_element" INNER JOIN "lego_color" ON ("lego_element"."color_id" = "lego_color"."id") WHERE ("lego_element"."is_active" AND "lego_element"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952)) ORDER BY "lego_color"."name" ASC, "lego_element"."element_id" ASC |
1.38 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(202) prefetch_related_objects(search_results, *Part.pr) |
|||||||||||||||||||||
|
SELECT "lego_partcolorstats"."id",
"lego_partcolorstats"."part_id", "lego_partcolorstats"."color_id", "lego_partcolorstats"."num_sets", "lego_partcolorstats"."num_mocs", "lego_partcolorstats"."num_set_parts", "lego_partcolorstats"."num_moc_parts", "lego_partcolorstats"."y1", "lego_partcolorstats"."y2", "lego_partcolorstats"."is_dirty", "lego_partcolorstats"."ignore_color_errors" FROM "lego_partcolorstats" WHERE "lego_partcolorstats"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952)SELECT ••• FROM "lego_partcolorstats" WHERE "lego_partcolorstats"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952) |
1.22 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(202) prefetch_related_objects(search_results, *Part.pr) |
|||||||||||||||||||||
|
SELECT "lego_partcost"."id",
"lego_partcost"."part_id", "lego_partcost"."color_id", "lego_partcost"."is_used", "lego_partcost"."cost_avg", "lego_partcost"."cost_min", "lego_partcost"."cost_max", "lego_partcost"."cost_count" FROM "lego_partcost" WHERE "lego_partcost"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952)SELECT ••• FROM "lego_partcost" WHERE "lego_partcost"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952) |
1.06 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(202) prefetch_related_objects(search_results, *Part.pr) |
|||||||||||||||||||||
|
SELECT "lego_partphoto"."id",
"lego_partphoto"."part_id", "lego_partphoto"."color_id", "lego_partphoto"."submitted_by_id", "lego_partphoto"."image", "lego_partphoto"."timestamp", "lego_partphoto"."is_active", "lego_partphoto"."is_primary" FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952))SELECT ••• FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."part_id" IN (35714, 70523, 22561, 66861, 3165, 69485, 3260, 19262, 23620, 23102, 59238, 10270, 61298, 68203, 69583, 3643, 71876, 48496, 31547, 71871, 71872, 44458, 71877, 31502, 39473, 43067, 31534, 31499, 38230, 71879, 71853, 11914, 67112, 71470, 31530, 1499, 71860, 71851, 42467, 64234, 71870, 71869, 71878, 4654, 58728, 11624, 27639, 68722, 71874, 57487, 69206, 57464, 67346, 61360, 69397, 66743, 69383, 2372, 31494, 59369, 68721, 70471, 9220, 40739, 28385, 70952, 35748, 35761, 31496, 49262, 18456, 58834, 59399, 57953, 33368, 37046, 36724, 68451, 61616, 60510, 51912, 404, 33423, 67880, 51388, 58905, 37546, 58840, 67222, 28190, 35576, 20171, 319, 24639, 36149, 24262, 5979, 29331, 55803, 8952)) |
9.44 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(202) prefetch_related_objects(search_results, *Part.pr) |
|||||||||||||||||||||
|
select 0 as id,
part_id, color_id from lego_partcolorstats a where num_set_parts = ( select max(num_set_parts) from lego_partcolorstats b where a.part_id=b.part_id and num_sets>0 ) and num_sets>0 and part_id in (35714,70523,22561,66861,3165,69485,3260,19262,23620,23102,59238,10270,61298,68203,69583,3643,71876,48496,31547,71871,71872,44458,71877,31502,39473,43067,31534,31499,38230,71879,71853,11914,67112,71470,31530,1499,71860,71851,42467,64234,71870,71869,71878,4654,58728,11624,27639,68722,71874,57487,69206,57464,67346,61360,69397,66743,69383,2372,31494,59369,68721,70471,9220,40739,28385,70952,35748,35761,31496,49262,18456,58834,59399,57953,33368,37046,36724,68451,61616,60510,51912,404,33423,67880,51388,58905,37546,58840,67222,28190,35576,20171,319,24639,36149,24262,5979,29331,55803,8952) select 0 as id, part_id, color_id from lego_partcolorstats a where num_set_parts = (select max(num_set_parts) from lego_partcolorstats b where a.part_id=b.part_id and num_sets>0) and num_sets>0 and part_id in (35714,70523,22561,66861,3165,69485,3260,19262,23620,23102,59238,10270,61298,68203,69583,3643,71876,48496,31547,71871,71872,44458,71877,31502,39473,43067,31534,31499,38230,71879,71853,11914,67112,71470,31530,1499,71860,71851,42467,64234,71870,71869,71878,4654,58728,11624,27639,68722,71874,57487,69206,57464,67346,61360,69397,66743,69383,2372,31494,59369,68721,70471,9220,40739,28385,70952,35748,35761,31496,49262,18456,58834,59399,57953,33368,37046,36724,68451,61616,60510,51912,404,33423,67880,51388,58905,37546,58840,67222,28190,35576,20171,319,24639,36149,24262,5979,29331,55803,8952) |
1.05 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(207) Part.attach_most_common_color_to_parts(search_results) /home/nathan/rb/site/./lego/models/parts.py in attach_most_common_color_to_parts(341) pcs_map = {p.part_id:p.color_id for p in pcs} |
|||||||||||||||||||||
|
SELECT "lego_color"."id",
"lego_color"."name", "lego_color"."rgb", "lego_color"."is_trans", "lego_color"."fuzzy_color_id", "lego_color"."is_active" FROM "lego_color" WHERE "lego_color"."is_active" ORDER BY "lego_color"."name" ASCSELECT ••• FROM "lego_color" WHERE "lego_color"."is_active" ORDER BY "lego_color"."name" ASC |
0.28 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(330) context['adv_form'] = AdvancedSearchPartsForm(params.copy(), user=request.user) /home/nathan/rb/site/./lego/forms/parts.py in __init__(672) self.fields['exists_in_color'].choices = Color.get_color_options(True) /home/nathan/rb/site/./lego/models/colors.py in get_color_options(110) for color in colors: |
|||||||||||||||||||||
|
SELECT "countries_plus_country"."iso",
"countries_plus_country"."iso3", "countries_plus_country"."iso_numeric", "countries_plus_country"."fips", "countries_plus_country"."name", "countries_plus_country"."capital", "countries_plus_country"."area", "countries_plus_country"."population", "countries_plus_country"."continent", "countries_plus_country"."tld", "countries_plus_country"."currency_code", "countries_plus_country"."currency_symbol", "countries_plus_country"."currency_name", "countries_plus_country"."phone", "countries_plus_country"."postal_code_format", "countries_plus_country"."postal_code_regex", "countries_plus_country"."languages", "countries_plus_country"."geonameid", "countries_plus_country"."neighbours", "countries_plus_country"."equivalent_fips_code" FROM "countries_plus_country" WHERE "countries_plus_country"."iso" = 'US' LIMIT 21SELECT ••• FROM "countries_plus_country" WHERE "countries_plus_country"."iso" = 'US' LIMIT 21 |
0.20 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(333) return render(request, 'parts/find_parts.html', context) /home/nathan/rb/site/./rb/templatetags/rb_geo.py in geo_currency(20) geo_data = user.geo.get_user_currency() /home/nathan/rb/site/./geo/geo.py in get_user_currency(252) country = Country.objects.get(iso=country_code)
/home/nathan/rb/site/rb/templates/rb/base_root.html |
|||||||||||||||||||||
|
SELECT "lego_partrelationship"."id",
"lego_partrelationship"."part_parent_id", "lego_partrelationship"."part_child_id", "lego_partrelationship"."rel_type" FROM "lego_partrelationship" WHERE ("lego_partrelationship"."part_child_id" = 69485 AND "lego_partrelationship"."rel_type" = 'S')SELECT ••• FROM "lego_partrelationship" WHERE ("lego_partrelationship"."part_child_id" = 69485 AND "lego_partrelationship"."rel_type" = 'S') |
0.12 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(333) return render(request, 'parts/find_parts.html', context) /home/nathan/rb/site/./lego/templatetags/parts/drawing.py in render_part(134) return mark_safe(render_part_wrapper(part, sub_text, request=context['request'])) /home/nathan/rb/site/./cache/utils.py in cache_wrapper(98) result = method(instance, *args, **kwargs) /home/nathan/rb/site/./lego/templatetags/parts/drawing.py in render_part_wrapper(133) return _render_part_in_color(part, sub_text=sub_text, request=request) /home/nathan/rb/site/./lego/templatetags/parts/drawing.py in _render_part_in_color(51) part_img = part.get_img_dir() /home/nathan/rb/site/./lego/models/parts.py in get_img_dir(607) similar_part = self.get_similar_part() /home/nathan/rb/site/./lego/models/parts.py in get_similar_part(352) if parent_rel:
/home/nathan/rb/site/lego/templates/parts/render_parts_list.html |
|||||||||||||||||||||
|
SELECT "lego_partphoto"."id",
"lego_partphoto"."part_id", "lego_partphoto"."color_id", "lego_partphoto"."submitted_by_id", "lego_partphoto"."image", "lego_partphoto"."timestamp", "lego_partphoto"."is_active", "lego_partphoto"."is_primary" FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."is_primary" AND "lego_partphoto"."part_id" = 69485)SELECT ••• FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."is_primary" AND "lego_partphoto"."part_id" = 69485) |
0.10 | ||||||||||||||||||||
|
Connection: default Transaction status: Idle /home/nathan/rb/site/./lego/views/parts.py in find_parts(333) return render(request, 'parts/find_parts.html', context) /home/nathan/rb/site/./lego/templatetags/parts/drawing.py in render_part(134) return mark_safe(render_part_wrapper(part, sub_text, request=context['request'])) /home/nathan/rb/site/./cache/utils.py in cache_wrapper(98) result = method(instance, *args, **kwargs) /home/nathan/rb/site/./lego/templatetags/parts/drawing.py in render_part_wrapper(133) return _render_part_in_color(part, sub_text=sub_text, request=request) /home/nathan/rb/site/./lego/templatetags/parts/drawing.py in _render_part_in_color(51) part_img = part.get_img_dir() /home/nathan/rb/site/./lego/models/parts.py in get_img_dir(663) photo = self.get_photo(color=None) /home/nathan/rb/site/./lego/models/parts.py in get_photo(506) if photos:
/home/nathan/rb/site/lego/templates/parts/render_parts_list.html |
|||||||||||||||||||||
No messages logged.