With everything as a note, how was it so performant? How did it scale so well?
Each note was just a record, but with no schema. Schemas were imposed at the UI layer by forms and at indexing time by views.
However, even with a mind towards efficiency and minimalism, performance at roughly hundreds of thousands of documents was extremely elusive.