[wp-hackers] Plugins installing db tables automatically

Denis de Bernardy denis at semiologic.com
Thu Jun 23 07:23:21 GMT 2005


The overhead is small, and I imagine you can combine the two. :)

D.

> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com 
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Jalenack
> Sent: Thursday, June 23, 2005 9:07 AM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Plugins installing db tables automatically
> 
> 
> Thanks Denis,
> 
> Nice code. Very easy to understand. But doesn't it weaken 
> performance slightly, by checking the table version number 
> every time the site loads? Or is it too insignificant? The 
> way I've done it, it only checks if there's been a plugin 
> activation. Your way is definitely cleaner.
> 
> Thanks again,
> 
> Andrew
> 
> P.S. Dave - Yes, it drives me crazy as well when plugin 
> authors use wp_ without a second thought. At the Codex, we 
> try to teach them better than that :-)
> 
> 
> On 6/22/05, Denis de Bernardy <denis at semiologic.com> wrote:
> 
> 	Hi Andrew,
> 	
> 	I dropped some simpler code in the discussion of your wiki page.
> 	
> 	Cheers,
> 	D.
> 	
> 	> -----Original Message-----
> 	> From: wp-hackers-bounces at lists.automattic.com 
> 	> [mailto:wp-hackers-bounces at lists.automattic.com] On 
> Behalf Of Jalenack
> 	> Sent: Thursday, June 23, 2005 7:03 AM
> 	> To: wp-hackers at lists.automattic.com 
> <mailto:wp-hackers at lists.automattic.com> 
> 	> Subject: [wp-hackers] Plugins installing db tables 
> automatically
> 	>
> 	>
> 	> Greetings wp-hackers,
> 	>
> 	> I've just written up an article on the Codex for plugin 
> 	> authors, on how to make plugins create their own tables in
> 	> the WP database. Before this gets *released* into the Codex,
> 	> I thought I'd run it by you guys. I want to know if you have
> 	> any quibbles about the code or suggestions. This is an 
> 	> important article for the Codex, so it needs to be as
> 	> accurate as possible.
> 	>
> 	> The main point of the article is efficiency. We don't want to
> 	> check/install the table every time a page is loaded. So keep 
> 	> that in mind as you're reading it. Go ahead and make comments
> 	> on the discussion page
> 	>
> 	> 
> http://codex.wordpress.org/User:Jalenack/Creating_Tables_with_Plugins 
> 	>
> 	> Thanks!
> 	>
> 	> --
> 	> Andrew Sutherland
> 	> http://blog.jalenack.com
> 	>
> 	
> 	_______________________________________________
> 	wp-hackers mailing list 
> 	wp-hackers at lists.automattic.com
> 	http://lists.automattic.com/mailman/listinfo/wp-hackers
> 	
> 
> 
> 
> 
> -- 
> Andrew Sutherland
> Jalenack.com 
> 



More information about the wp-hackers mailing list