6: Delete with Crux – Jupiter Assignment
NOTICE: Crux has been renamed to XTDB. This tutorial is now available at https://nextjournal.com/xtdb-tutorial instead. Please consider the following tutorial deprecated.
This is the
delete installment of the Crux tutorial.
You need to get Crux running before you can use it.
Arrival on Jupiter
You approach Jupiter and marvel at its bands. You wish you could have seen it this close before the Great Red Spot dissipated.
As you enter the Jovian atmosphere your communications panel lights up with the now expected, but rather terse message from boundary control.
The government is asking to see your flight manifest.
Choose your path:
You have your manifest : You have permission to land, continue to the space port.
You do not have your manifest : You do not have permission to land. You can either return to Saturn or continue at your own risk.
It’s a turbulent ride down to the space port. To take your mind off the colossal storm outside, you check the Crux manual for the
You are happy with what you have read, and in anticipation of the assignment you define the standalone node.
You land on the raised platform and open your job ticket
As you leave your ship, you are met by the martian Kaarlang:
Choose your path:
"Yes, we'll work together to do this." : Continue to complete the assignment.
"I'm not even sure how to begin" : Take some time to read through the Crux manual again. If you're still unsure then you can follow along anyway and see if things become clear.
Kaarlang gives you his client history so you can sync up your Crux node.
To get a good visual aid, you show Kaarlang how to view his client history. This way you both can see when the clients are deleted.
You explain that you are using a snapshot of Crux with a future
valid-time to see the full history.
The result shows the names of the clients that have been assigned to Kaarlang since he started at the company in 2110.
Next you delete the whole history of clients buy choosing a start and end
valid-time that spans his entire employment time.
Using the same method as before you show Kaarlang the effect that this operation has had.
Kaarlang is impressed it is that easy. You point out that there are no longer any documents attached to the transactions.
You remember the secret note in your pocket and pass it to Kaarlang.
The Secret Note.
Kaarlang reads the note.
He looks at you with the a peculiar facial expression.
Choose your path
"That sounds like a great opportunity, I'm in" - You head off to the secret location of the shuttle.
"No thanks, not for me." - You choose not to got with Kaarlang. You continue working for Helios Banking Inc. for the rest of your days.