How to do a page title rather than a page id? |
[eluser]Flemming[/eluser]
I'm not an expert but I think it's unlikely you'd notice any difference in speed if you're only looking up a single row. You should probably leave your unique id as the primary key (may be useful for admin/editing etc) and add another column to the table 'slug' (http://codex.wordpress.org/Glossary#Slug) which contains your friendly url. Then compare the time it takes (profile your application) getting the page from the DB by id, then by name (slug). I'd be interested to know if you find it any slower using the page name? |
Messages In This Thread |
How to do a page title rather than a page id? - by El Forum - 09-26-2009, 04:22 PM
How to do a page title rather than a page id? - by El Forum - 09-27-2009, 12:00 AM
How to do a page title rather than a page id? - by El Forum - 09-27-2009, 06:56 AM
How to do a page title rather than a page id? - by El Forum - 09-28-2009, 09:55 AM
How to do a page title rather than a page id? - by El Forum - 09-28-2009, 10:48 AM
How to do a page title rather than a page id? - by El Forum - 09-28-2009, 04:55 PM
How to do a page title rather than a page id? - by El Forum - 09-28-2009, 06:11 PM
How to do a page title rather than a page id? - by El Forum - 09-29-2009, 12:13 AM
|