lemmy/server
Dessalines f4565d0603
Remove materialized views. (#908)
* One pass at materialized views, only about 30% faster, not good.

* Before merging master to test out bans.

* DB Rework working, still need more testing.

* Fixing accidental addadmin bug from asonix async merge.

* Fixing the comment delete trigger

* Some more DB additions.

- Adding a hot_rank desc, published desc index to post_aggregates_fast.
- Removed WITH CTE queries in favor of direct selects (since CTEs cant
  use indexes)

* Removing some unecessary indexes.

* Some more DB optimizings

- Changing the fast_id pkeys to just ids on the fast tables.
- Removing the private_message_fast, since the view contains no aggregates.
- Comment and post voting now no longer pull from the views, they update the counts directly.

* Adding community_agg_view and post_agg_views Credit: eiknat.

* Adding user and comment_view migrations. (comment_view still broken)

* Adding more views. Credit Eiknat.
2020-07-07 10:54:44 -04:00
..
config Merge branch 'master' into federation 2020-06-27 10:54:08 -04:00
migrations Remove materialized views. (#908) 2020-07-07 10:54:44 -04:00
migrations_testing/2020-01-13-025151_create_materialized_views A first pass at using materialized views. 2020-01-13 20:02:02 -05:00
query_testing Remove materialized views. (#908) 2020-07-07 10:54:44 -04:00
src Remove materialized views. (#908) 2020-07-07 10:54:44 -04:00
.gitignore A first pass at using materialized views. 2020-01-13 20:02:02 -05:00
.rustfmt.toml Rework imports 2020-05-16 20:04:17 +02:00
Cargo.lock Revert "Verify activitypub payload digests (#885)" 2020-07-06 14:20:29 +02:00
Cargo.toml Revert "Verify activitypub payload digests (#885)" 2020-07-06 14:20:29 +02:00
clean.sh Adding cargo outdated to clean script. 2020-01-03 23:39:31 -05:00
db-init.sh Improve shell scripts (#705) 2020-05-11 13:16:08 -04:00
diesel.toml Starting to work on Rust Diesel Schema. #5 2019-02-27 22:02:55 -08:00