3
I have some questions related to the use of group_concat, more specifically for performance. When using group_concat can’t use limit.
// a query retorna todos os ID's
select group_concat( id ) from table limit 5
// pelo que eu vi, a solução seria usar substring_index para pegar a quantidade X
substring_index( group_concat( id ) , ',' , 5 )
I was wondering if group_concat impairs performance in some way, since it returns all the ID’s - as in the example above - and the reason for limit be ignored in query.