inkrement / l4-messenger

Message Package for Laravel 4.
57 stars 11 forks source link

Efficient query for conversations with last message #15

Closed TomClarkson closed 10 years ago

TomClarkson commented 10 years ago

Please see this post https://laracasts.com/forum/815-eloquent-conversations-with-last-message-please-he/p1#p3937

inkrement commented 10 years ago

Hi Tom,

your problem is not directly related to this project (package). Furthermore you are using a slightly different schema. Your messages are not directly "linked" to an conversation so you have to make a detour).

If performance is the most important parameter, I would use raw sql queries or larvavel's query builder, because each ORM query produces some sort of overhead).

TomClarkson commented 10 years ago

Thanks