Cake doesn't define indexes, you do.
Indexing your slug field will assuage your performance concerns.

-J.

On Sep 14, 2:15 pm, "Novice Programmer" <[EMAIL PROTECTED]>
wrote:
> Hello all,
>
> i have a query about using slugging with an application. initially i were
> accessing an item likehttp://sitename.com/users/view/18where 18 is the
> user_id now i am accessing it likehttp://sitename.com/users/<user_name>
> where user_name is 'slug'. So Query here is that wont be the second url be
> slow because while executing find query in the url 1, I use the id which is
> a primary key. but for url 2 the slug is not a primary key.
> So how does one get around this performance huddle. Do you make it as index?
> Does cake have any issues in defining indices?
>
> --
> Thanks & Regards,
> Novice.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to