The Sharing Fiction Newsletter

Share this post
DEV LOG: It's all Fauna and Games Until Someone Wants to Paginate
bram.substack.com

DEV LOG: It's all Fauna and Games Until Someone Wants to Paginate

Stenography

Bram Adams
Feb 2
Share this post
DEV LOG: It's all Fauna and Games Until Someone Wants to Paginate
bram.substack.com

Fauna is a database solution for a serverless first, Cloudflare Worker world.

Unfortunately, this entails new challenges that traditional databases stored on a single disk in Mom’s basement don’t suffer from.

For example;

Pulling all monthly active users from a Fauna Collection:

  1. Create an index on top of the correct collection

  2. Filter out only the relevant fields and leave search terms empty or the entire index will only return `n = 1` items

  3. When referencing that index, `Match()` on every item (SELECT *, sorta)

  4. Wrap that in a `Paginate()` (??)

    1. Paginate has a hard cap at 10,000

  5. The filtered fields lose their key and are stored in a flattened array. Remember the order in which keys were added to the Index, no take backsies!

Other News

  • I got roasted and toasted on HN for yesterday’s dev log. I could jump to my own defense, but as Ira Glass said, kill your darlings (or perhaps it was Mark Twain?). They can’t all be winners. Don’t get attached to stranger’s opinions on the internet, as a general rule.

What matters isn’t what a person has or doesn’t have; it is what he or she is afraid of losing…


Because, to repeat, life is sacrifice and risk taking, and nothing that doesn’t entail some moderate amount of the former, under the constraint of satisfying the latter, is close to what we can call life.

If you do not undertake a risk of real harm, reparable or even potentially irreparable, from an adventure, it is not an adventure.

Skin in the Game

There are twelve pairs of ribs, all of which articulate with the vertebral column, while only the first seven ribs directly articulate with the sternum.

The 1st rib is the shortest, widest and has the sharpest curve of all the ribs.

Ribs

ars longa, vita brevis

Bram

Share this post
DEV LOG: It's all Fauna and Games Until Someone Wants to Paginate
bram.substack.com
Comments

Create your profile

0 subscriptions will be displayed on your profile (edit)

Skip for now

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.

TopNewCommunity

No posts

Ready for more?

© 2022 Bram Adams
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing