Comment by braggerxyz

2 days ago

> ... and sort LEGO bricks by colour

You never sort by color, ever! You sort by form, and then throw every color of that specific form in one bin. If you throw every red brick in the same bin, you'll never find a specific formed red brick because to many red bricks. But if you first search by form and then by color, you are much faster.

As any DBA worth their salt knows.

Index the many valued column, not the column with few discrete values.

As someone who tried to sort many lego sets lately, I do like this. The problem lies that modern lego has so many unique forms that it feels like you'll have many bins with one or two pieces in.

  • That's why you buy different sized bins, and then you can even combine some forms into one bin (but be careful not to combine similiar forms, this counters the goal).

  • You need to get some bins that have a top shelf like a toolbox. The low item counts go in the top shelf, segregate the bottom for efficiency. Bin by color.

    • I love that we are ignoring Git and taking Legos.

      Anyone have a solution for another annoying problem: 1 missing piece.

      Somehow got lost halfway through the build.

      3 replies →

counterpoint (don't take this to seriously):

there are to many types of bricks to sort by form. unless you have an inventory the size of a brick factory you can only sort by category or by size.

otherwise, sorting by color makes your collection aesthetically pleasing, and when you build, you usually want to use specific colors only to make your model look good.

  • That's why you have to group similar forms. - Bricks - Plates - Narrow Plates - Wheels - Windows/Doors - Smooth pieces - People bin

    And then if you like to sort further you sort out the smallest of each bin because those always fall to the bottom when mixed together

    • sorting by size needs to come first. from my own experience, you can't find any small pieces if they are mixed/covered by larger ones.

  • There are less different forms than any normal brick enjoyer has bricks of a specific color. Therefore the lookup is faster ;)