Element

LDraw

Photo

There are 26 more photos of this Part
There are two known versions of this part:

2456 is the older version without Reinforcement Ridges.
Introduced in 1986, it has five bottom tubes and two cross supports at tubes 2 and 4; and the inner wall are flat. As Light Bluish Gray exist, this version was still in production in 2003.

The newer version is number 44237. Introduced after 2003. The inner walls have reinforcement ridges, two on the small side, and six on the long side.

The mold comparison image on the right shows both versions. We have both versions on this single part listing.





Basic Brick Quicklinks:
studs 1 2 3 4 6 8 10
1 3005 3004 3622 3010 3009 3008 6111
2 3004 3003 3002 3001 2456 3007 3006
4 3010 3001 na na 2356 na 6212
6 3009 2456 na 2356 na na na
8 3008 3007 na na na 4201 na

Available Colors

Toggle Available Colors

This part appears in 50 Colors. Click on a colored part below to see the Sets and MOCs that use part 2456 Brick 2 x 6 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 5 1
0000f3 F4F4F4
Modulex White
0000fb FCFCFC
Opal Trans-Clear
0000fe FFFFFF
Glitter Trans-Clear
0000fe FFFFFF
Glitter Milky White 1 1 2005 2005
0000fe FFFFFF
Modulex Clear
0000fe FFFFFF
White 4181142 1104 433 1986 2026 36421 3667
001dd3 05131D
Speckle Black-Copper
001dd3 05131D
Speckle Black-Gold
001dd3 05131D
Black 4181144 877 341 1990 2026 40508 5833
001dd3 05131D
Speckle Black-Silver
00296b 6B5A5A
Modulex Tile Gray
00347b 1B2A34
Chrome Black
003e15 3E3C39
Pearl Titanium
005803 575857
Pearl Dark Gray
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 6089871
006e0e 6C6E68
Dark Bluish Gray 4210875 794 266 2002 2026 36831 3378
006e2a 6D6E5C
Dark Gray 4181136 80 36 1998 2005 672 65
0087cf d06262
HO Rose
008804 898788
Flat Silver 44 2
00a00a 9BA19D
Light Gray 4271438 79 43 1993 2004 965 130
00a712 9CA3A8
Pearl Light Gray 4133533 1 1 2000 2000 2 1
00a80e A0A5A9
Light Bluish Gray 4211795 1113 324 2004 2026 57484 4922
00ac03 ABADAC
Pearl Very Light Gray
00b315 A5A9B4
Metallic Silver
00b315 A5ADB4
Metal
00d40e D4D5C9
Glow In Dark Opaque
00df00 E0E0E0
Chrome Silver
00e507 E6E3E0
Very Light Bluish Gray 39 3
00e50d E6E3DA
Very Light Gray 1 1
00e8bf c01111
HO Medium Red
00f201 F2F3F2
Pearl White
00fb00 FCFCFC
Trans-Clear 4130387 12 1
00fe00 FFFFFF
Milky White
00ff33 330000
Modulex Tile Brown
00ff8a 8B0000
Modulex Foil Red
0177d5 D67572
Sand Red 2 1
03d2b4 B52C20
Modulex Red
03f9b2 B31004
Rust 1 1
04d6cd CE3021
Chrome Red
04f4c8 C91A09
Trans-Red 6052253
04f4c8 C91A09
Red 4181138 804 319 1986 2026 20817 1887
058393 945148
Two-tone Copper
059cf1 F2705E
Salmon
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
0d7e57 57392C
Pearl Brown
0d8076 764D3B
Metallic Copper 7 1
0da1ac AD6140
Dark Nougat
0da395 965336
HO Light Brown
0e887c 7C503A
Light Brown 4497010 9 4
0ef1c9 CA4C0B
Reddish Orange
0fcb58 582A12
Reddish Brown 4216615 381 152 2004 2026 10003 1449
107dad AE7A59
Copper 2 1
108e58 583927
Brown 4181140 6 3 2000 2003 686 98
108e58 583927
Opal Trans-Brown
109590 915C3C
Sienna Brown 6 1
10cdf3 F47B30
Modulex Orange
1180cf D09168
Nougat 4497037 1 1 2005 2005 2 1
11a9aa AB673A
Two-tone Gold
126975 755945
Medium Brown 3 2
128fb5 B67B50
Fabuland Brown 4 2
1480a9 AA7D55
Medium Nougat 6350413 31 13 2023 2026 1098 113
14ebfe FF8014
Fabuland Red
14f2fe FF800D
Trans-Neon Orange 6051247 1 1 2012 2012
150473 737271
Two-tone Silver
1587b3 B48455
Flat Dark Gold
1599f6 F7AD63
Modulex Light Orange
1599f6 F7AD63
Modulex Foil Orange
15e7fd FE8A18
Orange 6382506 41 13 2022 2026 1414 203
15ffa8 A95500
Dark Orange 6511224 16 5 2024 2025 158 28
1691fb FCB76D
Trans-Flame Yellowish Orange
1745f5 F6D7B3
Light Nougat 4496983 23 6
176fcb CCA373
Warm Tan 12 1
17dcee EF9121
Fabuland Orange 2 1
17e1ef F08F1C
Glitter Trans-Orange
17e1ef F08F1C
Trans-Orange 6088648 1 1 2012 2012 3 1
18718f 907450
Modulex Brown
18daba bb771b
HO Earth Orange
193d64 645A4C
Chrome Antique Brass
195cf2 F3CF9B
Very Light Orange 4130327 1 1
1996ab AC8247
Reddish Gold
199cf8 F9BA61
Light Orange 4119665 1 1 2000 2000
19addc DD9E47
Ochre Yellow
19e2f9 FA9C1C
Earth Orange 12 2
19ffb3 B46A00
Pearl Copper
1a70f2 F3C988
Light Tan
1a87fe FFCB78
Warm Yellowish Orange 4243873 1 1 2004 2004
1acadc DD982E
Curry 2 1
1aff35 352100
Dark Brown 6490208 2 1 2024 2024 109 22
1b4cdd DEC69C
Modulex Buff
1bf4fe FFA70B
Medium Orange 4130350 1 1 2000 2000
1c69db DCBC81
Pearl Light Gold
1cbaa9 AA7F2E
Pearl Gold
1d3a94 958A73
Dark Tan 4497075 1 1 2005 2005 136 16
1d4ee3 E4CD9E
Tan 4181134 444 200 2001 2026 23313 1885
1d4ee3 E4CD9E
HO Tan
1dc0f7 F8BB3D
Bright Light Orange 4490699 1 1 2005 2005 17 3
1f7a5c 5C5030
Modulex Terracotta
1fc2da DBAC34
Metallic Gold
20a8fd FED557
Modulex Foil Yellow
20a8fd FED557
Modulex Ochre Yellow
2242cc cdc298
HO Light Gold
225bb3 b4a774
HO Gold
2267fa FBE696
Light Yellow 4181145 5 3 2002 2003 8 5
228efe FFE371
Modulex Light Yellow
22c5f1 F2CD37
Yellow 4181143 726 303 1986 2026 9919 1143
22cef4 F5CD2F
Trans-Yellow 245644
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 4178625 1 1
2433f8 f9f1c7
HO Light Tan
27c5fe FFF03A
Bright Light Yellow 6015151 1 1 2004 2004 6 2
27ffea EBD800
Vibrant Yellow 6527653 5 2 2022 2025 15 9
2877f7 F8F184
Trans-Neon Green 245649
28cffe FFF230
Duplo Lime
296b5d 5d5c36
Dark Olive Green
2a6b9a 9B9A5A
HO Olive Green
2a6b9a 9B9A5A
Olive Green 6031138 1 1 2012 2012
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 6052252
3244e3 D9E4A7
Light Lime
3244e3 D9E4A7
Glitter Trans-Bright Green
334eed DFEEA5
Yellowish Green 6088593 1 1 2012 2012 6 1
33f3e8 BBE90B
Lime 6422924 34 9 2023 2026 806 137
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
54889e 4B9F4A
Bright Green 6102903 8 5 2015 2022 921 150
55327a 627a62
HO Dark Sand Green
5586fb 78FC78
Fabuland Lime
55af60 1E601E
Vintage Green
55ff64 006400
Modulex Foil Dark Green
5d46b5 84B68D
Glitter Trans-Green
5d46b5 84B68D
Trans-Green 245648
5d46b5 84B68D
Opal Trans-Bright Green
5f7bb9 60BA76
Duplo Light Green
615ae4 94E5AB
Trans-Light Green
64b578 237841
Green 4181135 176 67 2000 2026 8710 632
657e89 468A5F
Duplo Medium Green
6726bb A0BCAC
Sand Green 4642410 195 3 2000 2004 340 38
6726bb A0BCAC
HO Sand Green
67ff8d 008E3C
Pearl Green 1 1
687adb 73DCA1
Medium Green 2 1
68aab2 3CB371
Chrome Green
6da846 184632
Dark Green 6215657 33 15 2018 2026 1040 179
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 2 1
7a1dc2 ADC3C0
Light Aqua 1 1 2012 2012
7cb585 27867E
Modulex Aqua Green
7e45ee AEEFEC
Trans-Light Blue 6014069
83e59c 10929d
HO Dark Turquoise
83ff9a 008F9B
Dark Turquoise 6249420 17 8 2019 2024 121 37
8478c4 68BCC5
Opal Trans-Light Blue
8478c4 68BCC5
Glitter Trans-Light Blue
8483ae 55A5AF
Light Turquoise
85b7be 36AEBF
Medium Azure 6022000 76 31 2013 2026 6029 404
8796d9 5AC4DA
Pastel Blue 4162340
87fbbc 039CBD
Vintage Blue
89ffcd 009ECE
Duplo Blue
8ba8b5 3E95B6
Duplo Medium Blue
8d695a 354e5a
HO Blue-gray
8d6fdc 7DBFDD
Sky Blue
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 6089782 1 1 2012 2012 37 8
8e528b 5f7d8c
HO Metallic Sand Blue
8ebac2 3592C3
Maersk Blue 1 1
8f32ef C1DFF0
Trans-Very Lt Blue
8f35e2 B4D2E3
Light Blue 8 2
91d31d 05131D
[No Color/Any Color] 5613 350
93ffa2 0059A3
Pearl Blue
946fbe 6C96BF
Chrome Blue
94ffa5 0057A6
Modulex Foil Dark Blue
94ffa5 0057A6
Modulex Tile Blue
9551e8 9FC3E9
Bright Light Blue 6014086 1 1 2011 2011 11 3
9556a5 6e8aa6
HO Sand Blue
959efe 61AFFF
Modulex Medium Blue
9629f6 CFE2F7
Trans-Medium Blue
9645f6 B4D4F7
Trans-Light Royal Blue
96e563 0A3463
Dark Blue 6100239 87 24 2015 2025 1870 231
96e563 0A3463
HO Dark Blue
9796da 5A93DB
Medium Blue 6162897 13 1 2017 2017 808 35
97ffbe 0055BF
Blue 4181139 660 235 1986 2025 23465 1491
986cc7 7396c8
HO Medium Blue
9a3fa0 7988A1
Pearl Sand Blue
9d67a0 6074A1
Sand Blue 4277201 21 5
9dbe27 0A1327
Pearl Black
9f1fc6 AfB5C7
Modulex Light Bluish Gray
a296a2 4354A3
Violet 2 1
a2ff9f 0020A0
Opal Trans-Dark Blue
a2ff9f 0020A0
Trans-Dark Blue 6014073 1 1
a4a7da 4C61DB
Royal Blue 1 1
a57cc9 6874CA
Medium Bluish Violet 4130308 1 1 2000 2000
a5d1af 2032B0
Dark Blue-Violet 2 1
a748c9 9195CA
Light Lilac
a75cfe A3A9FF
Blue Violet
a81ce1 C9CAE2
Light Violet 3 1
aa30ca A5A5CB
Glitter Trans-Purple
aa30ca A5A5CB
Trans-Purple
ab5de3 9391E4
Medium Violet
aea090 3F3691
Dark Purple 6147004 49 11 2004 2024 2404 160
b11352 4D4C52
Modulex Black
bb5bb2 8D73B3
Glitter Trans-Medium Purple
bb5bb2 8D73B3
Trans-Medium Purple
bcc4a9 5F27AA
Duplo Dark Purple
bf1aec E1D5ED
Lavender 6099360 2 1
c3ff81 4B0082
Modulex Foil Violet
c6d2b6 8320B7
Opal Trans-Purple
cb5ab9 AC78BA
Medium Lavender 6115808 3 2 2015 2016 334 21
cc4b9e 96709F
Trans-Light Purple
cf6f96 8E5597
Reddish Lilac 4 1
d44983 845E84
Sand Purple
d6ff80 81007B
Purple 4133555 1 1 2000 2000 41 3
e18ca9 AA4D8E
Chrome Pink
e19b91 923978
Magenta 3 2
e1dbcd CE1D9B
Opal Trans-Dark Pink
e870c7 C870A0
Dark Pink 11 3
ea3ee3 E4ADC8
Glitter Trans-Pink
ea3ee3 E4ADC8
Trans-Pink
ea3ee3 E4ADC8
Bright Pink 6228963 25 12 2018 2025 561 92
ea85cc CD6298
Light Purple
ed87fd FE78B0
Clikits Pink
ee8ade DF6695
Trans-Dark Pink 2456113
ee8ade DF6695
Glitter Trans-Dark Pink
ef76f6 F785B1
Modulex Pink
ef76f6 F785B1
Medium Dark Pink
f496fe FF698F
Coral 6422922 12 5 2023 2025 269 73
f4fffe FF0040
Trans-Neon Red
f666fb FC97AC
Pink
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 6089268 69 34 2015 2025 6844 497
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 414.693 msec
System CPU time 13.455 msec
Total CPU time 428.148 msec
Elapsed time 445.323 msec
Context switches 240 voluntary, 138 involuntary

Browser timing

Timing attribute Timeline Milliseconds since navigation start (+length)

SQL queries from 1 connection

  • default 14.04 ms (31 queries including 17 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" = '2456'
 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" = '2456' LIMIT 21
2 similar queries. Duplicated 2 times.
0.98

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

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

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

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" = '2456'
 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" = '2456' LIMIT 21
2 similar queries. Duplicated 2 times.
0.77

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

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 (1333)
SELECT ••• FROM "lego_partcolorstats" WHERE "lego_partcolorstats"."part_id" IN (1333)
2 similar queries. Duplicated 2 times.
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(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 (1333)
SELECT ••• FROM "lego_partcost" WHERE "lego_partcost"."part_id" IN (1333)
2 similar queries. Duplicated 2 times.
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(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 (1333))
SELECT ••• FROM "lego_partphoto" WHERE ("lego_partphoto"."is_active" AND "lego_partphoto"."part_id" IN (1333))
2 similar queries. Duplicated 2 times.
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(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" = 1333 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" = 1333 AND "lego_partrelationship"."rel_type" = 'P') LIMIT 1
2 similar queries.
0.59

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" = 1333 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" = 1333 AND "lego_partrelationship"."rel_type" = 'T') LIMIT 1
2 similar queries.
0.51

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_color.id,
       lego_color.id as color_id,
       name as color_name,
       rgb,
       sum(num_set_parts) as num_set_parts,
       sum(num_moc_parts) as num_moc_parts,
       sum(num_sets) as num_sets,
       sum(num_mocs) as num_mocs,
       min(y1) as y1,
       max(y2) as y2
  from
lego_color
  left outer join
lego_PartColorStats
    on
lego_PartColorStats.color_id = lego_Color.id
   and
lego_PartColorStats.part_id = 1333
 where
lego_color.id not in (-1)
 group by
1,
       2,
       3,
       4
select lego_color.id, lego_color.id as color_id, name as color_name, rgb, sum(num_set_parts) as num_set_parts, sum(num_moc_parts) as num_moc_parts, sum(num_sets) as num_sets, sum(num_mocs) as num_mocs, min(y1) as y1, max(y2) as y2 from lego_color left outer join lego_PartColorStats on lego_PartColorStats.color_id = lego_Color.id and lego_PartColorStats.part_id = 1333 where lego_color.id not in (-1) group by 1, 2, 3, 4
0.72

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(418)
  context['part_colors'] = PartColorStats.get_all_color_stats_for_part(part.id)

/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_all_color_stats_for_part(1767)
  for stat in stats:

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" = 1333)
 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" = 1333) ORDER BY "lego_color"."name" ASC, "lego_element"."element_id" ASC
0.59

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" = 1333 AND "lego_changelog"."model" = 'Part')
 ORDER BY
"lego_changelog"."timestamp" DESC
SELECT ••• FROM "lego_changelog" WHERE ("lego_changelog"."instance_id" = 1333 AND "lego_changelog"."model" = 'Part') ORDER BY "lego_changelog"."timestamp" DESC
0.82

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" = 1333
 ORDER BY
"lego_partmap"."is_export_id" DESC, "lego_partmap"."ext_id" ASC
SELECT ••• FROM "lego_partmap" WHERE "lego_partmap"."part_id" = 1333 ORDER BY "lego_partmap"."is_export_id" DESC, "lego_partmap"."ext_id" ASC
0.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(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 "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.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/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" = 71
 LIMIT
21
SELECT ••• FROM "lego_color" WHERE "lego_color"."id" = 71 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)

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" = 2492
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 2492 LIMIT 21
3 similar queries.
0.12

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" = 1333)
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" = 1333)
0.48

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" = 1333 AND "lego_partrelationship"."rel_type" = 'S')
SELECT ••• FROM "lego_partrelationship" WHERE ("lego_partrelationship"."part_child_id" = 1333 AND "lego_partrelationship"."rel_type" = 'S')
0.29

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" = '1333' 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" = '1333' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
2 similar queries. Duplicated 2 times.
0.48

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.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/./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" = 1333)
 LIMIT
1
SELECT ••• FROM "rb_comments_pagelocked" WHERE ("rb_comments_pagelocked"."content_type_id" = 43 AND "rb_comments_pagelocked"."object_id" = 1333) LIMIT 1
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/./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" = '1333' 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" = '1333' 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.04

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" = '1333' 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" = '1333' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
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(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" = '1333' 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" = '1333' 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
0.85

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" = 1333)
 LIMIT
21
SELECT ••• FROM "lego_partmap" WHERE ("lego_partmap"."ext_system" = 'BO' AND "lego_partmap"."is_export_id" AND "lego_partmap"."part_id" = 1333) 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" = 24425
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 24425 LIMIT 21
3 similar queries.
0.11

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 "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" = 17788
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 17788 LIMIT 21
3 similar queries.
0.09

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)

550 </div>
551 <div>
552 <small><i class="fa fa-fw fa-edit" title="Updated"></i> {{ changes.updated.timestamp }}
553 {% if changes.updated.user %}by
554 <a href="{% url 'user_profile' changes.updated.user.get_username %}">{{ changes.updated.user.get_username }}</a>
555 {% endif %}</small>
556 </div>
557 <div class="mb-10">

/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" = 1333)
 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" = 1333) GROUP BY "taggit_tag"."id"
0.96

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.