Element

LDraw

Photo

There are 29 more photos of this Part
Bottom pin may be solid or hollow.

Available Colors

Toggle Available Colors

This part appears in 41 Colors. Click on a colored part below to see the Sets and MOCs that use part 3460 Plate 1 x 8 in that color. You can find an overview of all LEGO Colors here.

If a color is missing, it probably needs to be added to a Set Inventory.

In Sets | In MOCS | All Colors
Color Element Set Parts Sets From To MOC Parts MOCs
00005e 5e5e5e
HO Metallic Dark Gray
000061 616161
HO Titanium
00009b 9C9C9C
Modulex Foil Light Gray
00009b 9C9C9C
Modulex Light Gray
0000d8 D9D9D9
Glow in Dark White 6 3
0000f3 F4F4F4
Modulex White
0000fb FCFCFC
Opal Trans-Clear
0000fe FFFFFF
Glitter Trans-Clear
0000fe FFFFFF
Glitter Milky White
0000fe FFFFFF
Modulex Clear
0000fe FFFFFF
White 346001 2827 778 1972 2026 78875 13239
001dd3 05131D
Speckle Black-Copper
001dd3 05131D
Speckle Black-Gold
001dd3 05131D
Black 346026 3707 962 1975 2026 110084 22055
001dd3 05131D
Speckle Black-Silver
00296b 6B5A5A
Modulex Tile Gray
00347b 1B2A34
Chrome Black
003e15 3E3C39
Pearl Titanium
005803 575857
Pearl Dark Gray 18 3
006013 595D60
Modulex Foil Dark Gray
006013 595D60
Modulex Charcoal Gray
00632c 635F52
Trans-Black
00632c 635F52
Trans-Black IR Lens
00632c 635F52
Trans-Brown
006e0e 6C6E68
Dark Bluish Gray 4210998 1975 556 2004 2026 65948 12469
006e2a 6D6E5C
Dark Gray 346027 120 32 1996 2005 513 109
0087cf d06262
HO Rose
008804 898788
Flat Silver 35 4
00a00a 9BA19D
Light Gray 346002 701 197 1973 2005 2189 557
00a712 9CA3A8
Pearl Light Gray 10 2
00a80e A0A5A9
Light Bluish Gray 4211425 2515 574 2002 2026 99497 16121
00ac03 ABADAC
Pearl Very Light Gray
00b315 A5A9B4
Metallic Silver 5 3
00b315 A5ADB4
Metal
00d40e D4D5C9
Glow In Dark Opaque
00df00 E0E0E0
Chrome Silver 35 10
00e507 E6E3E0
Very Light Bluish Gray 471 23
00e50d E6E3DA
Very Light Gray 16 2
00e8bf c01111
HO Medium Red
00f201 F2F3F2
Pearl White
00fb00 FCFCFC
Trans-Clear 346040 21 7
00fe00 FFFFFF
Milky White 4 2
00ff33 330000
Modulex Tile Brown
00ff8a 8B0000
Modulex Foil Red
0177d5 D67572
Sand Red
03d2b4 B52C20
Modulex Red
03f9b2 B31004
Rust 1 1
04d6cd CE3021
Chrome Red
04f4c8 C91A09
Trans-Red 6088580 2 1
04f4c8 C91A09
Red 346021 1243 408 1975 2026 27266 6264
058393 945148
Two-tone Copper
059cf1 F2705E
Salmon 1 1
05f5c9 CA1F08
Vintage Red
07bcf3 F45C40
Modulex Pink Red
07c7ed EE5434
Bright Reddish Orange
08d486 872B17
Rust Orange
0aeceb EC4612
Neon Orange
0c755e 5E3F33
Umber Brown 4 2
0d7e57 57392C
Pearl Brown
0d8076 764D3B
Metallic Copper 3 1
0da1ac AD6140
Dark Nougat 9 2
0da395 965336
HO Light Brown
0e887c 7C503A
Light Brown 26 6
0ef1c9 CA4C0B
Reddish Orange 6467485 52 13 2024 2025 364 102
0fcb58 582A12
Reddish Brown 4216945 929 258 2004 2026 31015 5037
107dad AE7A59
Copper 8 1
108e58 583927
Brown 4212940 34 7 2000 2005 940 204
108e58 583927
Opal Trans-Brown
109590 915C3C
Sienna Brown 3 2
10cdf3 F47B30
Modulex Orange
1180cf D09168
Nougat 18 5
11a9aa AB673A
Two-tone Gold
126975 755945
Medium Brown 24 4
128fb5 B67B50
Fabuland Brown 3 2
1480a9 AA7D55
Medium Nougat 6347603 144 46 2021 2026 2218 485
14ebfe FF8014
Fabuland Red
14f2fe FF800D
Trans-Neon Orange
150473 737271
Two-tone Silver
1587b3 B48455
Flat Dark Gold
1599f6 F7AD63
Modulex Light Orange
1599f6 F7AD63
Modulex Foil Orange
15e7fd FE8A18
Orange 6210229 123 41 2001 2026 2997 907
15ffa8 A95500
Dark Orange 4226017 118 22
1691fb FCB76D
Trans-Flame Yellowish Orange
1745f5 F6D7B3
Light Nougat 1 1
176fcb CCA373
Warm Tan 121 5
17dcee EF9121
Fabuland Orange
17e1ef F08F1C
Glitter Trans-Orange
17e1ef F08F1C
Trans-Orange
18718f 907450
Modulex Brown
18daba bb771b
HO Earth Orange
193d64 645A4C
Chrome Antique Brass
195cf2 F3CF9B
Very Light Orange 14 3
1996ab AC8247
Reddish Gold
199cf8 F9BA61
Light Orange
19addc DD9E47
Ochre Yellow
19e2f9 FA9C1C
Earth Orange 7 3
19ffb3 B46A00
Pearl Copper
1a70f2 F3C988
Light Tan
1a87fe FFCB78
Warm Yellowish Orange
1acadc DD982E
Curry 2 1
1aff35 352100
Dark Brown 4519946 339 53 2008 2026 4932 786
1b4cdd DEC69C
Modulex Buff
1bf4fe FFA70B
Medium Orange 18 4
1c69db DCBC81
Pearl Light Gold
1cbaa9 AA7F2E
Pearl Gold 3 2
1d3a94 958A73
Dark Tan 6156492 376 102 2016 2026 11161 2461
1d4ee3 E4CD9E
Tan 4114324 1210 276 1998 2026 31725 5029
1d4ee3 E4CD9E
HO Tan
1dc0f7 F8BB3D
Bright Light Orange 6192205 141 51 2017 2025 3611 718
1f7a5c 5C5030
Modulex Terracotta
1fc2da DBAC34
Metallic Gold 3 2
20a8fd FED557
Modulex Foil Yellow
20a8fd FED557
Modulex Ochre Yellow
2242cc cdc298
HO Light Gold
225bb3 b4a774
HO Gold
2267fa FBE696
Light Yellow 27 4
228efe FFE371
Modulex Light Yellow
22c5f1 F2CD37
Yellow 346024 828 273 1973 2026 14837 3529
22cef4 F5CD2F
Trans-Yellow 2 2
22cef4 F5CD2F
Opal Trans-Yellow
22f4fe FFCF0B
Clikits Yellow
22faf2 F3C305
Vintage Yellow
22ffd9 DAB000
Trans-Neon Yellow
236dfa FBE890
Trans-Fire Yellow
23acba BBA53D
Chrome Gold 1 1
2433f8 f9f1c7
HO Light Tan
27c5fe FFF03A
Bright Light Yellow 6248761 79 26 2019 2025 2117 327
27ffea EBD800
Vibrant Yellow 6472963 9 4 2024 2026 43 16
2877f7 F8F184
Trans-Neon Green 346049 2 1
28cffe FFF230
Duplo Lime
296b5d 5d5c36
Dark Olive Green
2a6b9a 9B9A5A
HO Olive Green
2a6b9a 9B9A5A
Olive Green 6278034 49 7 2019 2023 2226 316
2d2a6e 6D6E5C
HO Dark Gray
2d8ab8 b2b955
HO Dark Lime
2de0c5 BDC618
Modulex Lemon
2e44f9 f5fab7
HO Light Yellow
2eb6d1 C7D23C
Medium Lime
3244e3 D9E4A7
Trans-Bright Green
3244e3 D9E4A7
Light Lime
3244e3 D9E4A7
Glitter Trans-Bright Green
334eed DFEEA5
Yellowish Green
33f3e8 BBE90B
Lime 6392872 67 29 2009 2026 1272 411
34bbfb D2FC43
Neon Green
34fff4 C0F500
Glitter Trans-Neon Green
37639a 899B5F
Metallic Green
377079 6A7944
Pearl Lime
3869e6 C9E788
Trans-Light Bright Green
38708f 7C9051
Modulex Olive Green
390e6e 6C6E68
Speckle DBGray-Silver
395297 879867
HO Metallic Green
3a20c5 BDC6AD
Glow In Dark Trans
3eb0b4 7DB538
Modulex Pastel Green
3eb0b4 7DB538
Modulex Foil Light Green
4928d9 C2DAB8
Light Green 9 1
54889e 4B9F4A
Bright Green 4195195 49 16
55327a 627a62
HO Dark Sand Green
5586fb 78FC78
Fabuland Lime 2 1
55af60 1E601E
Vintage Green
55ff64 006400
Modulex Foil Dark Green
5d46b5 84B68D
Glitter Trans-Green
5d46b5 84B68D
Trans-Green
5d46b5 84B68D
Opal Trans-Bright Green
5f7bb9 60BA76
Duplo Light Green
615ae4 94E5AB
Trans-Light Green
64b578 237841
Green 346028 343 124 1984 2026 9280 2021
657e89 468A5F
Duplo Medium Green
6726bb A0BCAC
Sand Green 6529726 32 11 2000 2026 833 177
6726bb A0BCAC
HO Sand Green
67ff8d 008E3C
Pearl Green
687adb 73DCA1
Medium Green 3 2
68aab2 3CB371
Chrome Green
6da846 184632
Dark Green 4264408 2 1 2004 2004 1497 325
6da846 184632
HO Dark Green
7038d0 a3d1c0
HO Light Aqua
753ddb a7dccf
HO Dark Aqua
77a7b5 3FB69E
Duplo Turquoise
782bd6 B3D7D1
HO Aqua
782bd6 B3D7D1
Aqua 4245385 2 1 2005 2005 23 5
7a1dc2 ADC3C0
Light Aqua 6310373 16 4 2020 2022 187 41
7cb585 27867E
Modulex Aqua Green
7e45ee AEEFEC
Trans-Light Blue
83e59c 10929d
HO Dark Turquoise
83ff9a 008F9B
Dark Turquoise 6259921 115 44 2019 2026 1486 330
8478c4 68BCC5
Opal Trans-Light Blue
8478c4 68BCC5
Glitter Trans-Light Blue
8483ae 55A5AF
Light Turquoise 2 1
85b7be 36AEBF
Medium Azure 6074793 125 51 2014 2026 2709 777
8796d9 5AC4DA
Pastel Blue 346011
87fbbc 039CBD
Vintage Blue
89ffcd 009ECE
Duplo Blue
8ba8b5 3E95B6
Duplo Medium Blue
8d695a 354e5a
HO Blue-gray
8d6fdc 7DBFDD
Sky Blue 4493570 2 1 2005 2005 9 5
8d7782 467083
Modulex Teal Blue
8d7db2 5b98b3
HO Cyan
8d7ecd 68AECE
Modulex Pastel Blue
8d7ecd 68AECE
Modulex Foil Light Blue
8dde63 0d4763
HO Metallic Blue
8de5ca 1591cb
HO Azure
8df6c8 078BC9
Dark Azure 6210227 114 28 2018 2026 1579 354
8e528b 5f7d8c
HO Metallic Sand Blue
8ebac2 3592C3
Maersk Blue 6 1 1980 1980 26 4
8f32ef C1DFF0
Trans-Very Lt Blue 10 2
8f35e2 B4D2E3
Light Blue
91d31d 05131D
[No Color/Any Color] 3412 438
93ffa2 0059A3
Pearl Blue
946fbe 6C96BF
Chrome Blue
94ffa5 0057A6
Modulex Foil Dark Blue
94ffa5 0057A6
Modulex Tile Blue
9551e8 9FC3E9
Bright Light Blue 6372125 58 13 2021 2026 761 157
9556a5 6e8aa6
HO Sand Blue
959efe 61AFFF
Modulex Medium Blue
9629f6 CFE2F7
Trans-Medium Blue 2 1
9645f6 B4D4F7
Trans-Light Royal Blue
96e563 0A3463
Dark Blue 6250216 214 58 2003 2026 7690 1587
96e563 0A3463
HO Dark Blue
9796da 5A93DB
Medium Blue 4210213 24 9
97ffbe 0055BF
Blue 346023 816 251 1975 2025 15082 3182
986cc7 7396c8
HO Medium Blue
9a3fa0 7988A1
Pearl Sand Blue
9d67a0 6074A1
Sand Blue 9 4
9dbe27 0A1327
Pearl Black 4 1
9f1fc6 AfB5C7
Modulex Light Bluish Gray
a296a2 4354A3
Violet 3 2
a2ff9f 0020A0
Opal Trans-Dark Blue
a2ff9f 0020A0
Trans-Dark Blue 3 2
a4a7da 4C61DB
Royal Blue
a57cc9 6874CA
Medium Bluish Violet
a5d1af 2032B0
Dark Blue-Violet
a748c9 9195CA
Light Lilac
a75cfe A3A9FF
Blue Violet
a81ce1 C9CAE2
Light Violet
aa30ca A5A5CB
Glitter Trans-Purple
aa30ca A5A5CB
Trans-Purple
ab5de3 9391E4
Medium Violet
aea090 3F3691
Dark Purple 11 2
b11352 4D4C52
Modulex Black
bb5bb2 8D73B3
Glitter Trans-Medium Purple
bb5bb2 8D73B3
Trans-Medium Purple
bcc4a9 5F27AA
Duplo Dark Purple
bf1aec E1D5ED
Lavender 6099387 2 1 2018 2018 25 8
c3ff81 4B0082
Modulex Foil Violet
c6d2b6 8320B7
Opal Trans-Purple
cb5ab9 AC78BA
Medium Lavender 4625022 76 18 2012 2020 1128 133
cc4b9e 96709F
Trans-Light Purple
cf6f96 8E5597
Reddish Lilac 2 1
d44983 845E84
Sand Purple
d6ff80 81007B
Purple 13 4
e18ca9 AA4D8E
Chrome Pink
e19b91 923978
Magenta 6109929 81 26 2000 2025 997 228
e1dbcd CE1D9B
Opal Trans-Dark Pink
e870c7 C870A0
Dark Pink 6548252 22 7 2017 2026 197 57
ea3ee3 E4ADC8
Glitter Trans-Pink
ea3ee3 E4ADC8
Trans-Pink
ea3ee3 E4ADC8
Bright Pink 6143789 28 14 2021 2026 282 66
ea85cc CD6298
Light Purple
ed87fd FE78B0
Clikits Pink
ee8ade DF6695
Trans-Dark Pink
ee8ade DF6695
Glitter Trans-Dark Pink
ef76f6 F785B1
Modulex Pink
ef76f6 F785B1
Medium Dark Pink
f496fe FF698F
Coral 6425366 32 8 2019 2024 85 20
f4fffe FF0040
Trans-Neon Red
f666fb FC97AC
Pink 3 3
f7ffd5 D60026
Pearl Red
f878fe FF879C
Duplo Pink
fa41f5 F6B7BF
Warm Pink
fa56bc BD7D85
Modulex Violet
fc32fd FECCCF
Light Pink
fd44fd FEBABD
Light Salmon
fece63 631314
HO Dark Red
ffe072 720E0F
Dark Red 4541507 182 56 2002 2025 9034 1688
to your account to add or reply to comments.
Create an account to change the default filters used.
DJDT

Time

Resource usage

Resource Value
User CPU time 493.811 msec
System CPU time 13.398 msec
Total CPU time 507.209 msec
Elapsed time 521.703 msec
Context switches 250 voluntary, 170 involuntary

Browser timing

Timing attribute Timeline Milliseconds since navigation start (+length)

SQL queries from 1 connection

  • default 17.96 ms (30 queries including 16 similar and 12 duplicates )
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" = '3460'
 LIMIT
21
SELECT ••• 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" = '3460' LIMIT 21
2 similar queries. Duplicated 2 times.
0.64

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_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 (163))
 ORDER BY
"lego_color"."name" ASC, "lego_element"."element_id" ASC
SELECT ••• 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 (163)) ORDER BY "lego_color"."name" ASC, "lego_element"."element_id" ASC
2 similar queries. Duplicated 2 times.
0.55

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_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 (163)
SELECT ••• FROM "lego_partcolorstats" WHERE "lego_partcolorstats"."part_id" IN (163)
2 similar queries. Duplicated 2 times.
0.45

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_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 (163)
SELECT ••• FROM "lego_partcost" WHERE "lego_partcost"."part_id" IN (163)
2 similar queries. Duplicated 2 times.
0.33

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_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 (163))
SELECT ••• FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."part_id" IN (163))
2 similar queries. Duplicated 2 times.
0.33

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_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" = '3460'
 LIMIT
21
SELECT ••• 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" = '3460' LIMIT 21
2 similar queries. Duplicated 2 times.
0.60

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(362)
  part = get_object_or_404(Part.all_objects, part_num=part_num)

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 (163))
 ORDER BY
"lego_color"."name" ASC, "lego_element"."element_id" ASC
SELECT ••• 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 (163)) ORDER BY "lego_color"."name" ASC, "lego_element"."element_id" ASC
2 similar queries. Duplicated 2 times.
0.38

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(362)
  part = get_object_or_404(Part.all_objects, part_num=part_num)

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 (163)
SELECT ••• FROM "lego_partcolorstats" WHERE "lego_partcolorstats"."part_id" IN (163)
2 similar queries. Duplicated 2 times.
0.23

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(362)
  part = get_object_or_404(Part.all_objects, part_num=part_num)

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 (163)
SELECT ••• FROM "lego_partcost" WHERE "lego_partcost"."part_id" IN (163)
2 similar queries. Duplicated 2 times.
0.23

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(362)
  part = get_object_or_404(Part.all_objects, part_num=part_num)

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 (163))
SELECT ••• FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."part_id" IN (163))
2 similar queries. Duplicated 2 times.
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(362)
  part = get_object_or_404(Part.all_objects, part_num=part_num)

SELECT "lego_partrelationship"."id",
       "lego_partrelationship"."part_parent_id",
       "lego_partrelationship"."part_child_id",
       "lego_partrelationship"."rel_type",
       T3."id",
       T3."part_num",
       T3."name",
       T3."part_cat_id",
       T3."notes",
       T3."is_active",
       T3."search_vector",
       T3."ldraw_part_id",
       T3."bricklink_part_id",
       T3."ignore_color_errors",
       T3."part_material_id",
       T3."is_bricklink_minifig",
       T3."is_bricklink_book",
       T3."is_bricklink_gear",
       T3."show_generic_part_msg",
       "lego_partcategory"."id",
       "lego_partcategory"."name",
       "lego_partcategory"."part_count",
       "lego_partcategory"."img",
       "lego_partcategory"."slug",
       "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_partrelationship"
 INNER JOIN
"lego_part" T3
    ON
("lego_partrelationship"."part_parent_id" = T3."id")
 INNER JOIN
"lego_partcategory"
    ON
(T3."part_cat_id" = "lego_partcategory"."id")
  LEFT OUTER JOIN
"lego_partoverlay"
    ON
(T3."id" = "lego_partoverlay"."part_id")
  LEFT OUTER JOIN
"lego_partstats"
    ON
(T3."id" = "lego_partstats"."part_id")
 WHERE
("lego_partrelationship"."part_child_id" = 163 AND "lego_partrelationship"."rel_type" = 'P')
 LIMIT
1
SELECT ••• FROM "lego_partrelationship" INNER JOIN "lego_part" T3 ON ("lego_partrelationship"."part_parent_id" = T3."id") INNER JOIN "lego_partcategory" ON (T3."part_cat_id" = "lego_partcategory"."id") LEFT OUTER JOIN "lego_partoverlay" ON (T3."id" = "lego_partoverlay"."part_id") LEFT OUTER JOIN "lego_partstats" ON (T3."id" = "lego_partstats"."part_id") WHERE ("lego_partrelationship"."part_child_id" = 163 AND "lego_partrelationship"."rel_type" = 'P') LIMIT 1
2 similar queries.
5.88

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(386)
  print_of = part.get_related_prints_parent()

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/parts.py in get_related_prints_parent(773)
  return self.get_related_parent(PartRelationship.REL_TYPE_PRINT, query_related=query_related)

/home/nathan/rb/site/./lego/models/parts.py in get_related_parent(727)
  return parents[0].part_parent

SELECT "lego_partrelationship"."id",
       "lego_partrelationship"."part_parent_id",
       "lego_partrelationship"."part_child_id",
       "lego_partrelationship"."rel_type",
       T3."id",
       T3."part_num",
       T3."name",
       T3."part_cat_id",
       T3."notes",
       T3."is_active",
       T3."search_vector",
       T3."ldraw_part_id",
       T3."bricklink_part_id",
       T3."ignore_color_errors",
       T3."part_material_id",
       T3."is_bricklink_minifig",
       T3."is_bricklink_book",
       T3."is_bricklink_gear",
       T3."show_generic_part_msg",
       "lego_partcategory"."id",
       "lego_partcategory"."name",
       "lego_partcategory"."part_count",
       "lego_partcategory"."img",
       "lego_partcategory"."slug",
       "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_partrelationship"
 INNER JOIN
"lego_part" T3
    ON
("lego_partrelationship"."part_parent_id" = T3."id")
 INNER JOIN
"lego_partcategory"
    ON
(T3."part_cat_id" = "lego_partcategory"."id")
  LEFT OUTER JOIN
"lego_partoverlay"
    ON
(T3."id" = "lego_partoverlay"."part_id")
  LEFT OUTER JOIN
"lego_partstats"
    ON
(T3."id" = "lego_partstats"."part_id")
 WHERE
("lego_partrelationship"."part_child_id" = 163 AND "lego_partrelationship"."rel_type" = 'T')
 LIMIT
1
SELECT ••• FROM "lego_partrelationship" INNER JOIN "lego_part" T3 ON ("lego_partrelationship"."part_parent_id" = T3."id") INNER JOIN "lego_partcategory" ON (T3."part_cat_id" = "lego_partcategory"."id") LEFT OUTER JOIN "lego_partoverlay" ON (T3."id" = "lego_partoverlay"."part_id") LEFT OUTER JOIN "lego_partstats" ON (T3."id" = "lego_partstats"."part_id") WHERE ("lego_partrelationship"."part_child_id" = 163 AND "lego_partrelationship"."rel_type" = 'T') LIMIT 1
2 similar queries.
0.78

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(387)
  pattern_of = part.get_related_patterns_parent()

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/parts.py in get_related_patterns_parent(778)
  return self.get_related_parent(PartRelationship.REL_TYPE_PATTERN)

/home/nathan/rb/site/./lego/models/parts.py in get_related_parent(727)
  return parents[0].part_parent

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"."is_export_id" AND "lego_element"."part_id" = 163)
 ORDER BY
"lego_color"."name" ASC, "lego_element"."element_id" ASC
SELECT ••• FROM "lego_element" INNER JOIN "lego_color" ON ("lego_element"."color_id" = "lego_color"."id") WHERE ("lego_element"."is_active" AND "lego_element"."is_export_id" AND "lego_element"."part_id" = 163) ORDER BY "lego_color"."name" ASC, "lego_element"."element_id" ASC
0.44

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(425)
  elements_map = {e.color_id: e for e in elements}

SELECT "lego_changelog"."id",
       "lego_changelog"."timestamp",
       "lego_changelog"."user_id",
       "lego_changelog"."model",
       "lego_changelog"."instance_id",
       "lego_changelog"."set_num",
       "lego_changelog"."part_num",
       "lego_changelog"."old_value",
       "lego_changelog"."new_value"
  FROM
"lego_changelog"
 WHERE
("lego_changelog"."instance_id" = 163 AND "lego_changelog"."model" = 'Part')
 ORDER BY
"lego_changelog"."timestamp" DESC
SELECT ••• FROM "lego_changelog" WHERE ("lego_changelog"."instance_id" = 163 AND "lego_changelog"."model" = 'Part') ORDER BY "lego_changelog"."timestamp" DESC
0.25

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(598)
  changes = part.get_change_summary()

/home/nathan/rb/site/./lego/models/parts.py in get_change_summary(961)
  changes = ChangeLog.get_changes(part_id=self.id)

/home/nathan/rb/site/./lego/models/changes.py in get_changes(276)
  if len(changes) > 0:

SELECT "lego_partmap"."id",
       "lego_partmap"."part_id",
       "lego_partmap"."ext_system",
       "lego_partmap"."ext_id",
       "lego_partmap"."is_export_id",
       "lego_partmap"."is_import_id"
  FROM
"lego_partmap"
 WHERE
"lego_partmap"."part_id" = 163
 ORDER BY
"lego_partmap"."is_export_id" DESC, "lego_partmap"."ext_id" ASC
SELECT ••• FROM "lego_partmap" WHERE "lego_partmap"."part_id" = 163 ORDER BY "lego_partmap"."is_export_id" DESC, "lego_partmap"."ext_id" ASC
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(600)
  context['mappings'] = part.get_ext_mappings()

/home/nathan/rb/site/./lego/models/parts.py in get_ext_mappings(1165)
  for part_map in self.mappings.order_by('-is_export_id', 'ext_id'):  # export first

SELECT "rb_sitesettings"."id",
       "rb_sitesettings"."name",
       "rb_sitesettings"."value"
  FROM
"rb_sitesettings"
 WHERE
"rb_sitesettings"."name" = 'site_message'
 LIMIT
21
SELECT ••• FROM "rb_sitesettings" WHERE "rb_sitesettings"."name" = 'site_message' LIMIT 21
0.16

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/rb/site/./rb/templatetags/rb_settings.py in site_message(147)
  message = SiteSettings.get_site_message()

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./rb/models/site.py in get_site_message(24)
  setting = cls.objects.get(name=SiteSettings.SITE_MESSAGE)

340
341 <body class="{% block body-class %}{{ request.user.get_body_classes }}{% endblock body-class %}">
342
343 {% site_message %}
344 <div id="wrapper" class="{% block wrapper_class %}{% endblock wrapper_class %} {% if request.user.is_anonymous %}{% else %}{{ request.user.get_personalisation_options.max_width }}{% endif %}">
345
346
347 <div id="topBar" class="hidden-sm hidden-xs">

/home/nathan/rb/site/rb/templates/rb/base_root.html

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
21
SELECT ••• FROM "countries_plus_country" WHERE "countries_plus_country"."iso" = 'US' LIMIT 21
0.26

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.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)

412 </a>
413 </li>
414 <li class="hidden-xs">
415 {% geo_currency request.user %}
416 </li>
417 {% comment %}
418 <li class="hidden-xs hidden-sm">
419 <a href={% if request.user.is_authenticated %}"{% url 'user_profile_settings' request.user.get_username %}#personalisation"{% else %}"#" onclick="return false;"{% endif %} title="All date/times are being converted to this timezone">{% get_user_timezone request.user %}</a>

/home/nathan/rb/site/rb/templates/rb/base_root.html

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"."id" = 0
 LIMIT
21
SELECT ••• FROM "lego_color" WHERE "lego_color"."id" = 0 LIMIT 21
0.31

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

25 <div class="col-xs-4">
26 {% if part.img_photo.img_url %}
27 <a class="lightbox" href="/media/{{ part.img_photo.img_url }}" data-plugin-options='{"type":"image"}'
28 title="{{ part.img_photo.photo.color.name }} submitted by {{ part.img_photo.photo.submitted_by.username }} on {{ part.img_photo.photo.timestamp }}">
29 {% thumbs part.img_photo.img_url settings.THUMBS_OPTIONS_PART_LARGE as img %}
30 <img class="img-responsive" data-src="{% cachebuster img.url %}" width="{{ img.width }}" height="{{ img.height }}">
31 </a>
32 {% else %}

/home/nathan/rb/site/lego/templates/parts/includes/render_part_large_images.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM
"auth_user"
 WHERE
"auth_user"."id" = 83025
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 83025 LIMIT 21
2 similar queries.
0.16

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

25 <div class="col-xs-4">
26 {% if part.img_photo.img_url %}
27 <a class="lightbox" href="/media/{{ part.img_photo.img_url }}" data-plugin-options='{"type":"image"}'
28 title="{{ part.img_photo.photo.color.name }} submitted by {{ part.img_photo.photo.submitted_by.username }} on {{ part.img_photo.photo.timestamp }}">
29 {% thumbs part.img_photo.img_url settings.THUMBS_OPTIONS_PART_LARGE as img %}
30 <img class="img-responsive" data-src="{% cachebuster img.url %}" width="{{ img.width }}" height="{{ img.height }}">
31 </a>
32 {% else %}

/home/nathan/rb/site/lego/templates/parts/includes/render_part_large_images.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",
       "lego_color"."id",
       "lego_color"."name",
       "lego_color"."rgb",
       "lego_color"."is_trans",
       "lego_color"."fuzzy_color_id",
       "lego_color"."is_active",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM
"lego_partphoto"
 INNER JOIN
"lego_color"
    ON
("lego_partphoto"."color_id" = "lego_color"."id")
 INNER JOIN
"auth_user"
    ON
("lego_partphoto"."submitted_by_id" = "auth_user"."id")
 WHERE
("lego_partphoto"."is_active" AND NOT "lego_partphoto"."is_primary" AND "lego_partphoto"."part_id" = 163)
SELECT ••• FROM "lego_partphoto" INNER JOIN "lego_color" ON ("lego_partphoto"."color_id" = "lego_color"."id") INNER JOIN "auth_user" ON ("lego_partphoto"."submitted_by_id" = "auth_user"."id") WHERE ("lego_partphoto"."is_active" AND NOT "lego_partphoto"."is_primary" AND "lego_partphoto"."part_id" = 163)
0.39

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

55
56 {% include 'parts/includes/render_part_large_images.html' %}
57
58 {% if secondary_photos %}
59 <div class="clearfix">
60 <div class="pull-right">
61 There are <a href="#" class="js-toggle-field" data-field="#secondary_photos">
62 {{ secondary_photos.count }} more photos <i class="fa fa-chevron-down"></i></a> of this Part

/home/nathan/rb/site/lego/templates/parts/part_details.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" = 163 AND "lego_partrelationship"."rel_type" = 'S')
SELECT ••• FROM "lego_partrelationship" WHERE ("lego_partrelationship"."part_child_id" = 163 AND "lego_partrelationship"."rel_type" = 'S')
0.17

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/rb/site/./lego/templatetags/parts/drawing.py in render_part_img(227)
  part_img = part.get_img_dir(color_id=color_id, force_use_ldraw=force_use_ldraw)

/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:

153 <span style="display:none">{{ part_stat.color.hsv_str }}</span>
154 <a href="{{ part_stat.url }}">
155 <div style="max-height:45px; max-width:45px">
156 {% render_part_img part_stat.color_id part=part %}
157 </div>
158 </a>
159 </td>
160 <td><a href="{{ part_stat.url }}">{{ part_stat.color.name }}</a></td>

/home/nathan/rb/site/lego/templates/parts/part_details.html

SELECT COUNT(*) AS "__count"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
 WHERE
("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") WHERE ("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
2 similar queries. Duplicated 2 times.
0.47

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(72)
  context[self.as_varname] = self.get_context_value_from_queryset(context, qs)

/home/nathan/venv_rb310/lib/python3.10/site-packages/threadedcomments/templatetags/threadedcomments_tags.py in get_context_value_from_queryset(116)
  return qs.count()

198 <section class="padding-xxs">
199
200 <ul class="nav nav-tabs nav-top-border">
201 {% get_comment_count for part as num_comments %}
202 <li><a href="#tab_comments" data-toggle="tab">Comments <span class="badge badge-light">{{ num_comments }}</span></a>
203 </li>
204 <li><a href="#tab_buy_parts" data-toggle="tab">Buy Part <span class="badge badge-light" id="buy_parts_count"></span></a></li>
205 <li class="active"><a href="#tab_rel_parts" data-toggle="tab">Related Parts <span class="badge badge-light" id="rel_parts_count">{{ part.related.total_rels }}</span></a></li>

/home/nathan/rb/site/lego/templates/parts/part_details.html

SELECT "django_content_type"."id",
       "django_content_type"."app_label",
       "django_content_type"."model"
  FROM
"django_content_type"
 WHERE
("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'part')
 LIMIT
21
SELECT ••• FROM "django_content_type" WHERE ("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'part') LIMIT 21
0.19

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_page_locked_status(78)
  content_type = ContentType.objects.get(app_label=page_content_type.split('.')[0], model=page_content_type.split('.')[1])

4 {% load rb_comments_filters %}
5
6 <div id="comments-{{ page.id }}">
7 {% get_page_locked_status content_type page.id as is_page_locked %}
8
9 {% comment %}
10 Not using render_comment_list as it uses styles in ul/li that I can't seem to get working well with Smarty.
11 Using fluent-comments to hide unused fields and do ajax add/reply comment.

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT 1 AS "a"
  FROM
"rb_comments_pagelocked"
 WHERE
("rb_comments_pagelocked"."content_type_id" = 43 AND "rb_comments_pagelocked"."object_id" = 163)
 LIMIT
1
SELECT ••• FROM "rb_comments_pagelocked" WHERE ("rb_comments_pagelocked"."content_type_id" = 43 AND "rb_comments_pagelocked"."object_id" = 163) LIMIT 1
0.23

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_page_locked_status(79)
  is_locked = PageLocked.objects.filter(content_type=content_type, object_id=page_id).exists()

4 {% load rb_comments_filters %}
5
6 <div id="comments-{{ page.id }}">
7 {% get_page_locked_status content_type page.id as is_page_locked %}
8
9 {% comment %}
10 Not using render_comment_list as it uses styles in ul/li that I can't seem to get working well with Smarty.
11 Using fluent-comments to hide unused fields and do ajax add/reply comment.

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT (SUBSTRING(tree_path, 1, 10)) AS "tree_path_root",
       "django_comments"."id",
       "django_comments"."content_type_id",
       "django_comments"."object_pk",
       "django_comments"."site_id",
       "django_comments"."user_id",
       "django_comments"."user_name",
       "django_comments"."user_email",
       "django_comments"."user_url",
       "django_comments"."comment",
       "django_comments"."submit_date",
       "django_comments"."ip_address",
       "django_comments"."is_public",
       "django_comments"."is_removed",
       "threadedcomments_comment"."comment_ptr_id",
       "threadedcomments_comment"."title",
       "threadedcomments_comment"."parent_id",
       "threadedcomments_comment"."last_child_id",
       "threadedcomments_comment"."tree_path",
       "threadedcomments_comment"."newest_activity",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent",
       "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly",
       "accounts_userprofile"."user_id",
       "accounts_userprofile"."last_mod_inv",
       "accounts_userprofile"."last_activity",
       "accounts_userprofile"."last_ip",
       "accounts_userprofile"."last_country_id",
       "accounts_userprofile"."last_agent",
       "accounts_userprofile"."is_email_verified",
       "accounts_userprofile"."is_email_idle",
       "accounts_userprofile"."email_last_clicked",
       "accounts_userprofile"."api_token",
       "accounts_userprofile"."real_name",
       "accounts_userprofile"."location",
       "accounts_userprofile"."brickset_url",
       "accounts_userprofile"."mocpages_url",
       "accounts_userprofile"."flickr_url",
       "accounts_userprofile"."eurobricks_url",
       "accounts_userprofile"."youtube_url",
       "accounts_userprofile"."bricklink_url",
       "accounts_userprofile"."brickowl_url",
       "accounts_userprofile"."bricksafe_url",
       "accounts_userprofile"."website_url",
       "accounts_userprofile"."facebook_url",
       "accounts_userprofile"."twitter_url",
       "accounts_userprofile"."karma",
       "accounts_userprofile"."trophy_badge_id",
       "accounts_userprofile"."comments",
       "accounts_userprofile"."mfhash_vector",
       "accounts_userprofile"."is_muted",
       "accounts_userprofile"."is_banned",
       "accounts_userprofile"."is_suspected_pirate",
       "accounts_userprofile"."muted_until",
       "accounts_userprofile"."blocked_operations",
       "accounts_userprofile"."is_guest",
       "accounts_userprofile"."guest_token"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
  LEFT OUTER JOIN
"auth_user"
    ON
("django_comments"."user_id" = "auth_user"."id")
  LEFT OUTER JOIN
"accounts_userplan"
    ON
("auth_user"."id" = "accounts_userplan"."user_id")
  LEFT OUTER JOIN
"plans_plan"
    ON
("accounts_userplan"."plan_id" = "plans_plan"."id")
  LEFT OUTER JOIN
"accounts_userprofile"
    ON
("auth_user"."id" = "accounts_userprofile"."user_id")
 WHERE
("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
 ORDER BY
1 DESC, "threadedcomments_comment"."tree_path" ASC
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") LEFT OUTER JOIN "auth_user" ON ("django_comments"."user_id" = "auth_user"."id") LEFT OUTER JOIN "accounts_userplan" ON ("auth_user"."id" = "accounts_userplan"."user_id") LEFT OUTER JOIN "plans_plan" ON ("accounts_userplan"."plan_id" = "plans_plan"."id") LEFT OUTER JOIN "accounts_userprofile" ON ("auth_user"."id" = "accounts_userprofile"."user_id") WHERE ("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed") ORDER BY 1 DESC, "threadedcomments_comment"."tree_path" ASC
1.05

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(71)
  qs = self.get_queryset(context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_queryset(45)
  return qs[:50], len(qs)

14 {% endcomment %}
15 {% if not comment_list %}
16 {# Get comments for a page #}
17 {% get_rb_comment_list for page as comment_list %}
18 {% get_comment_count for page as num_comments %}
19
20 {% if show_comment_count %}
21 <div class="clearfix">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT COUNT(*) AS "__count"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
 WHERE
("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") WHERE ("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
2 similar queries. Duplicated 2 times.
0.50

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(72)
  context[self.as_varname] = self.get_context_value_from_queryset(context, qs)

/home/nathan/venv_rb310/lib/python3.10/site-packages/threadedcomments/templatetags/threadedcomments_tags.py in get_context_value_from_queryset(116)
  return qs.count()

15 {% if not comment_list %}
16 {# Get comments for a page #}
17 {% get_rb_comment_list for page as comment_list %}
18 {% get_comment_count for page as num_comments %}
19
20 {% if show_comment_count %}
21 <div class="clearfix">
22 <div class="heading-title heading-border-bottom heading-color">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT (SUBSTRING(tree_path, 1, 10)) AS "tree_path_root",
       "django_comments"."id",
       "django_comments"."content_type_id",
       "django_comments"."object_pk",
       "django_comments"."site_id",
       "django_comments"."user_id",
       "django_comments"."user_name",
       "django_comments"."user_email",
       "django_comments"."user_url",
       "django_comments"."comment",
       "django_comments"."submit_date",
       "django_comments"."ip_address",
       "django_comments"."is_public",
       "django_comments"."is_removed",
       "threadedcomments_comment"."comment_ptr_id",
       "threadedcomments_comment"."title",
       "threadedcomments_comment"."parent_id",
       "threadedcomments_comment"."last_child_id",
       "threadedcomments_comment"."tree_path",
       "threadedcomments_comment"."newest_activity",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent",
       "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly",
       "accounts_userprofile"."user_id",
       "accounts_userprofile"."last_mod_inv",
       "accounts_userprofile"."last_activity",
       "accounts_userprofile"."last_ip",
       "accounts_userprofile"."last_country_id",
       "accounts_userprofile"."last_agent",
       "accounts_userprofile"."is_email_verified",
       "accounts_userprofile"."is_email_idle",
       "accounts_userprofile"."email_last_clicked",
       "accounts_userprofile"."api_token",
       "accounts_userprofile"."real_name",
       "accounts_userprofile"."location",
       "accounts_userprofile"."brickset_url",
       "accounts_userprofile"."mocpages_url",
       "accounts_userprofile"."flickr_url",
       "accounts_userprofile"."eurobricks_url",
       "accounts_userprofile"."youtube_url",
       "accounts_userprofile"."bricklink_url",
       "accounts_userprofile"."brickowl_url",
       "accounts_userprofile"."bricksafe_url",
       "accounts_userprofile"."website_url",
       "accounts_userprofile"."facebook_url",
       "accounts_userprofile"."twitter_url",
       "accounts_userprofile"."karma",
       "accounts_userprofile"."trophy_badge_id",
       "accounts_userprofile"."comments",
       "accounts_userprofile"."mfhash_vector",
       "accounts_userprofile"."is_muted",
       "accounts_userprofile"."is_banned",
       "accounts_userprofile"."is_suspected_pirate",
       "accounts_userprofile"."muted_until",
       "accounts_userprofile"."blocked_operations",
       "accounts_userprofile"."is_guest",
       "accounts_userprofile"."guest_token"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
  LEFT OUTER JOIN
"auth_user"
    ON
("django_comments"."user_id" = "auth_user"."id")
  LEFT OUTER JOIN
"accounts_userplan"
    ON
("auth_user"."id" = "accounts_userplan"."user_id")
  LEFT OUTER JOIN
"plans_plan"
    ON
("accounts_userplan"."plan_id" = "plans_plan"."id")
  LEFT OUTER JOIN
"accounts_userprofile"
    ON
("auth_user"."id" = "accounts_userprofile"."user_id")
 WHERE
("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
 ORDER BY
1 DESC, "threadedcomments_comment"."tree_path" ASC
 LIMIT
50
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") LEFT OUTER JOIN "auth_user" ON ("django_comments"."user_id" = "auth_user"."id") LEFT OUTER JOIN "accounts_userplan" ON ("auth_user"."id" = "accounts_userplan"."user_id") LEFT OUTER JOIN "plans_plan" ON ("accounts_userplan"."plan_id" = "plans_plan"."id") LEFT OUTER JOIN "accounts_userprofile" ON ("auth_user"."id" = "accounts_userprofile"."user_id") WHERE ("django_comments"."content_type_id" = 43 AND "django_comments"."object_pk" = '163' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed") ORDER BY 1 DESC, "threadedcomments_comment"."tree_path" ASC LIMIT 50
1.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

89 {% with cache_timeout=user.is_authenticated|yesno:"0,300" %}
90 {% cache cache_timeout 'comments_list_v2' request.user.is_authenticated page.id request.GET.page request.GET.showmore num_comments %}
91
92 <div class="comments {% if not comment_list.0 %} empty{% endif %} mb-30">
93 {% if use_context %}
94 {# Flat list of comments #}
95 {% for comment in comment_list.0|make_proxy_users %}
96 <ul class="comment list-unstyled comment-list-wrapper">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "lego_partmap"."id",
       "lego_partmap"."part_id",
       "lego_partmap"."ext_system",
       "lego_partmap"."ext_id",
       "lego_partmap"."is_export_id",
       "lego_partmap"."is_import_id"
  FROM
"lego_partmap"
 WHERE
("lego_partmap"."ext_system" = 'BO' AND "lego_partmap"."is_export_id" AND "lego_partmap"."part_id" = 163)
 LIMIT
21
SELECT ••• FROM "lego_partmap" WHERE ("lego_partmap"."ext_system" = 'BO' AND "lego_partmap"."is_export_id" AND "lego_partmap"."part_id" = 163) LIMIT 21
0.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

/home/nathan/rb/site/./lego/models/parts.py in get_brickowl_num(1025)
  return PartMap.part_to_brickowl_id(self.id)

/home/nathan/rb/site/./lego/models/parts.py in part_to_brickowl_id(2011)
  part_map = PartMap.objects.get(ext_system=rb.constants.systems.EXT_SYSTEM_BRICKOWL, part_id=part_id, is_export_id=True)

221
222 <div class="row mt-10 mb-10">
223 <div class="col-md-6">
224 <a href="https://www.brickowl.com/search/catalog?query={{ part.get_brickowl_num }}&utm_source=rebrickable">
225 <button class="btn btn-default btn-block">
226 <img src="{% static 'img/sites/bo.png' %}" class="store-icon-sm"> Search BrickOwl
227 </button>
228 </a>

/home/nathan/rb/site/lego/templates/parts/part_details.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM
"auth_user"
 WHERE
"auth_user"."id" = 5434
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 5434 LIMIT 21
2 similar queries.
0.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

544 <section class="padding-xxs">
545 <div>
546 <small><i class="fa fa-fw fa-plus" title="Added"></i> {{ changes.added.timestamp }}
547 {% if changes.added.user %}by
548 <a href="{% url 'user_profile' changes.added.user.get_username %}">{{ changes.added.user.get_username }}</a>
549 {% endif %}</small>
550 </div>
551 <div>

/home/nathan/rb/site/lego/templates/parts/part_details.html

SELECT DISTINCT "taggit_tag"."id",
       "taggit_tag"."name",
       "taggit_tag"."slug",
       COUNT("lego_part"."id") AS "count"
  FROM
"taggit_tag"
 INNER JOIN
"taggit_taggeditem"
    ON
("taggit_tag"."id" = "taggit_taggeditem"."tag_id")
 INNER JOIN
"django_content_type"
    ON
("taggit_taggeditem"."content_type_id" = "django_content_type"."id")
  LEFT OUTER JOIN
"lego_part"
    ON
("taggit_taggeditem"."object_id" = "lego_part"."id" AND ("taggit_taggeditem"."content_type_id" IN (43,48)))
 INNER JOIN
"taggit_taggeditem" T5
    ON
("taggit_tag"."id" = T5."tag_id")
 INNER JOIN
"lego_part" T6
    ON
(T5."object_id" = T6."id" AND (T5."content_type_id" IN (43,48)))
 WHERE
("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'part' AND T6."id" = 163)
 GROUP BY
"taggit_tag"."id"
SELECT ••• FROM "taggit_tag" INNER JOIN "taggit_taggeditem" ON ("taggit_tag"."id" = "taggit_taggeditem"."tag_id") INNER JOIN "django_content_type" ON ("taggit_taggeditem"."content_type_id" = "django_content_type"."id") LEFT OUTER JOIN "lego_part" ON ("taggit_taggeditem"."object_id" = "lego_part"."id" AND ("taggit_taggeditem"."content_type_id" IN (43,48))) INNER JOIN "taggit_taggeditem" T5 ON ("taggit_tag"."id" = T5."tag_id") INNER JOIN "lego_part" T6 ON (T5."object_id" = T6."id" AND (T5."content_type_id" IN (43,48))) WHERE ("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'part' AND T6."id" = 163) GROUP BY "taggit_tag"."id"
1.20

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/parts.py in find_parts(124)
  return part_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/parts.py in part_details(609)
  return render(request, 'parts/part_details.html', context)

1 {# Simon wanted the id=tags as an anchor for his links #}
2 <div class="clearfix anchor tags_list" id="{{ prefix }}tags">
3 {% for tag in tags %}
4 <a href="{% url 'find_parts' %}?tag={{ tag.id }}&show_unused=on&show_printed=on" class="tag {% if request.user.is_tagger %}deltag{% endif %}">
5 <span class="txt">{{ tag.name }}</span>
6 <span class="num">
7 <span class="relative">

/home/nathan/rb/site/lego/templates/parts/includes/render_tags.html

Log messages

No messages logged.