phiresky

joined 1 year ago
MODERATOR OF
[โ€“] phiresky 17 points 1 year ago

well internally (in the context of activitypub) they are called "groups" ๐Ÿค“

[โ€“] phiresky 2 points 1 year ago

postgresql has integrated full text search functionality that works pretty well. shouldn't be too hard to add

[โ€“] phiresky 35 points 1 year ago (1 children)
[โ€“] phiresky 1 points 1 year ago

yes, real stats would be real helpful. what about those user queries you said take 10 seconds? is that still true? maybe you could publish a new overview over what you find?

[โ€“] phiresky 2 points 1 year ago

@[email protected] If you find queries that are slow could you post the EXPLAIN ANALYZE here or send them to me? You can do it manually or maybe use https://www.postgresql.org/docs/current/auto-explain.html

[โ€“] phiresky 1 points 1 year ago* (last edited 1 year ago) (2 children)

well tuned a single insert should take less than a tenth of a millisecond on postgresql. even with 10 indexes and a trigger 0.4 seconds is not how long an insert takes. if you're seeing slow times it might be due to very different things, especially the huge locking hot_rank updates that make all inserts / updates on comments,posts table pause until done (which will show up as slower times in the query times you're looking at)

[โ€“] phiresky 1 points 1 year ago

it is already in a different repo, just running from the same process. since 0.18 (with debug mode off) it should also be running in a somewhat efficient multi-thread environment

[โ€“] phiresky 3 points 1 year ago (2 children)

Hey! I'm working on a rust tool right now to import a month of reddit dump into a lemmy instance using the federation api (for benchmarking / load testing as well).

[โ€“] phiresky 7 points 1 year ago (2 children)

In general websockets scale badly because the server has to keep open a connection and a fair amount of state. You also can't really cache websocket messages like you can normal HTTP responses. Not sure which reasons apply to Lemmy though.

view more: โ€น prev next โ€บ