1,514 karma · joined Aug 24, 2015 (11y ago) · 537 submissions
[ my public key: https://keybase.io/refset; my proof: https://keybase.io/refset/sigs/pyTK0thu8g5O4Zs7EA3HrQYKkYZjeEz_TUr8nZV2hlY ] c0ba44896414421c9009bc8a77a86ceb
meet.hn/city/51.0612766,-1.3131692/Winchester
Socials: - github.com/refset
---
comment 3y ago · link · parent
Perhaps the most fundamental aspect here is the inherent tension between (A) typical columnar relational schemas which primarily target efficient OLAP across very wide & sparse tables, and (B) the nature of 'graph' systems (whether OLAP or OLTP) which tend towards handling a huge number of tables and/or recursive self-joins + incremental view maintenance. I believe Michael Stonebraker's conjecture continues to be that a "one size fits all" database engine is essentially unachievable, and therefore you can't expect a single database system to be competitive across both domains simultaneously. However some databases (SQL Server springs to mind) are apparently pretty good at running multiple engines in parallel.
With the v2 XTDB engine design we are sacrificing some of our graph capabilities in the short term (WCOJ and self-join optimisations) for what we feel are more pressing advantages of the columnar model (low-cost retention of history and vectorized processing). We are also aiming to retain reasonable OLTP performance as well, in a similar vein to SingleStore etc., since the target audience is still application developers rather than data analysts.
If you are looking for a way of using Datalog on existing columnar storage engines today, you should definitely look at https://logica.dev/
Also, this Stonebraker talk on "Big Data is (at least) Four Different Problems" is pretty good: https://www.youtube.com/watch?v=KRcecxdGxvQ
EDIT: regarding "I attempted to import a file of several hundred megabytes and execute queries on triple store Datalog systems" - if you have that benchmark available somewhere I would love to take a look. You can see some information on XTDB's approach to triple store benchmarking with 'WatDiv' here: https://docs.xtdb.com/resources/performance/#watdiv
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
> here’s a chart comparing the throughputs of typical memory, I/O and networking technologies used in servers in 2020 against those technologies in 2023
> Everything got faster, but the relative ratios also completely flipped
> memory located remotely across a network link can now be accessed with no penalty in throughput
The graphs demonstrate it very clearly: https://blog.enfabrica.net/the-next-step-in-high-performance...
comment 3y ago · link · parent
https://www.cockroachlabs.com/blog/vectorized-hash-joiner/
https://www.cockroachlabs.com/blog/vectorizing-the-merge-joi...
...it seems the distinction here is that the vectorization is only present in the execution layer and not the storage layer also. I would guess that from a storage perspective, even with column families in play, everything is being streamed out of sorted a LSM engine regardless. So there isn't additionally some highly-tuned buffer pool serving up batches of compressed column files etc.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I gave a talk titled "UPDATE Considered Harmful" featuring exactly this idea a few months back. The etymology still makes no sense to me...they should have named it REPLACE instead of UPDATE: https://www.youtube.com/watch?v=JxMz-tyicgo
comment 3y ago · link · parent
comment 3y ago · link · parent
> Currently, Temporal Tables Extension supports the system-period temporal tables only.
For anyone looking for full application-period support and bitemporal tables on Postgres, I think the only actively maintained library/extension available is https://github.com/hettie-d/pg_bitemporal (it's also not SQL:2011 compliant though).
comment 3y ago · link · parent
344.
JUXT Cast Special with Kent Beck(juxt.pro ↗)
1 points · by refset · 3y ago · 1 comment
comment 3y ago · link · parent
comment 3y ago · link · parent
Also this is a neat list of LiveView-like technologies across various languages: https://github.com/liveviews/liveviews
comment 3y ago · link · parent
Their announcement email reads...
> We've open-sourced our Twitter-scale Mastodon implementation on our Github. The implementation is 10k lines of code, which is 100x less code than Twitter wrote to build and scale their original consumer product, which was extremely similar. This repository can easily be adapted to make any Twitter-like social network.
> The project README includes instructions for running an instance locally on your machine, which is easy to do. To help with understanding the codebase, we've left many comments throughout the code.
> Finally, our blog post from two weeks ago is a deep-dive exploration of how this codebase works
https://blog.redplanetlabs.com/2023/08/15/how-we-reduced-the...
Previous discussion: https://news.ycombinator.com/item?id=37137110
There's also this "Introducing Rama" video: https://www.youtube.com/watch?v=jcvxGvzjLHg
348.
Rama 10k LOC Twitter-scale Mastodon implementation(twitter.com ↗)
6 points · by refset · 3y ago · 1 comment
comment 3y ago · link · parent
351.
Bitemporality and the Art of Maintaining Accurate Databases [video](juxt.pro ↗)
1 points · by refset · 3y ago · discuss
comment 3y ago · link · parent
> It's incredibly insightful, full of personal stories from his time at Xerox PARC, under the leadership of Robert Taylor, working with Butler Lampson and so much more about the founding of Adobe and Silicon Valley in general.
comment 3y ago · link · parent
> it would be cool if e.g. Postgres had fast native support for bitemporal fields in a way that makes them accessible without changing the whole paradigm
100% agreed with you there. And there has been various work on patches & extensions in this area previously. Unfortunately I'm not sure Postgres' internals will ever be able to flex hard enough to deliver a decent "default choice" experience. At least not until some other system has proven the UX is really worth the effort (which I guess MongoDB did similarly achieve with native JSON handling).
comment 3y ago · link · parent
But it's not clear to me that existing, popular database engines will ever be able to evolve to make bitemporality an efficient or easy default choice. And in the meantime countless person-years of effort are wasted rediscovering and solving the same time-related problems over and over.
A world where bitemporality was (somehow) a realistic default choice would be a simpler world, I reckon.
comment 3y ago · link · parent
> If you're new to Datomic, you probably have the same misconceptions as I did regarding the use of Datomic's historical features.
> bad news: you've probably over-estimated the usefulness of these features for implementing your own specific time travel. Unless you really know what you're doing, I recommend you don't use db.asOf(), db.history(), and :db/txInstant in your business logic code.
> good news: you've probably under-estimated the usefulness of these features for managing your entire system as a programmer.
>I believe the key to getting past this confusion is the distinction between event time (when things happened) and recording time (when your system learns they happened).
comment 3y ago · link · parent
I don't think much has really changed since, and I'm not sure Postgres is any closer to addressing this natively (although there have been extensions, e.g. https://github.com/scalegenius/pg_bitemporal).
comment 3y ago · link · parent
> Part of the reason it hasn’t taken off is because of the additional complexity it imposes on programmers.
My take is that it's specifically the additional complexity it imposes on _database_ programmers - the impacts across storage design, foreign keys and schema evolution when all data is bitemporal are profound. SQL:2011 introduced "temporal tables" but the design was arguably incomplete and implementing it ubiquitously requires a real re-think of database internals, so we're now over a decade on and these capabilities are still far from commonplace.
> However, I think part of the reason it hasn’t become more popular, given the benefits it brings, is just the name.
No disagreement from me there!
Disclosure: I work on xtdb.com, building a new database engine where bitemporality is the default. I also spoke with Kent about this last week and am running a webinar about bitemporality more generally on Thursday: https://attendee.gotowebinar.com/register/296060701290006793...
comment 3y ago · link · parent
My take is that it's specifically the additional complexity it imposes on _database_ programmers - the impacts across storage design, foreign keys and schema evolution when all data is bitemporal are profound. SQL:2011 introduced "temporal tables" but the design was arguably incomplete and implementing it ubiquitously requires a real re-think of database internals, so we're now over a decade on and these capabilities are still far from commonplace.
> However, I think part of the reason it hasn’t become more popular, given the benefits it brings, is just the name.
No disagreement from me there!
Disclosure: I work on xtdb.com, building a new database engine where bitemporality is the default. I also spoke with Kent about this last week :)