Nobody ever got fired for using a struct
feldera.com · 2,237 words · saved by 1 readers
Rust struct serialization problem caused by many nullable SQL columns.
When a few variables belong together, we put them in a struct. Programmers do this automatically without thinking about it much. And most of the time it's the right choice. Structs are simple, fast, and predictable. But once in a while they break down. This is the story of one of those cases. How it started One of our customers reported a strange performance problem. A new use case processed about the same amount of data as their existing pipelines, but it ran much slower. That was unusual. Our engine normally keeps up with the data customers send. So we felt compelled to take a closer look. H
saved by
related reading
- Defining and Instantiating Structs - The Rust Programming Languagedoc.rust-lang.org
- A half-hour to learn Rustfasterthanli.me
- An Example Program Using Structs - The Rust Programming Languagedoc.rust-lang.org
- Item 7: Use builders for complex types - Effective Rustlurklurk.org
- A data race that doesn't compilecorentin-core.github.io
- Defining an Enum - The Rust Programming Languagedoc.rust-lang.org
- Patterns for Defensive Programming in Rust | corrode Rust Consultingcorrode.dev
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- (Re)writing an interpreter in Rust – Danny van Kootendannyvankooten.com
- Methods - The Rust Programming Languagedoc.rust-lang.org
- Fast and Simple Rust Internermatklad.github.io
- Using Structs to Structure Related Datadoc.rust-lang.org