spatie / laravel-comments-app

An application for testing out laravel-comments
https://laravel-comments.com
5 stars 2 forks source link

We have 2 x n+1 issue on Filmanet CommentResource #6

Closed mauricekindermann closed 8 months ago

mauricekindermann commented 1 year ago

Hey team,

We have 2 n+1 issues on our filament CommentResource

  1. we are loading commentable name from parent.
  2. when you try to reply a comment using spatie comments UI.
->getStateUsing(fn (Comment $record) => $record->topLevel()->commentable?->commentableName() ?? 'Deleted...')

We're migrating a dataset with about 35k comments, and purely using the frontend for approval is not feasible.

image

Anyone aware of this, or fixed it, or have a solution?

spatie-bot commented 8 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.