@Johann150 yes, it's a good fit, activities are documents. the performance characteristics are the same as if you had a fully normalized db, as longs as you have indexes on the actually relational parts. I would not split objects and activities n the database, though.
@feld@Johann150 yes, but this doesn't happen if you only join / query over indexed expressions, because those use the statistics of the index, that's what we're doing mostly. i forgot about the extended statistics, good to know.
@lain@Johann150 we do gotta confront the bad query plans because of statistics tho. I just realized there's a manual way to work around it if you can identify it and I don't recall seeing this in our schema
@feld@Johann150 actually looking at the original post that was linked in that post, it seems that they DID have a btree index on it. I should take a look again at slow queries.