 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Arnold Daniels' Blog: An alternative way of EAV modeling
by Chris Cornutt July 31, 2008 @ 12:54:23
Arnold Daniels has posted some thoughts on a topics recently featured in a cover story by php|architect - EAV modeling.
I had seen this db structure in other project, but didn't know that it was called EAV. For those who don't read php|architect, EAV describes a method of saving a large set of attributes, only some of which apply to an individual entity. Normally you would create a table, with a row for each entity and save each attribute in a column. With EAV you save each attribute as a row.
He suggests two ways to do the modeling - the more "common" way and an alternative way that splits up the data types to make querying simpler (into scalars and arrays). A sample database structure and example query for it are included.
voice your opinion now!
eav modeling database attribute query common alternative method
Debuggable Blog: Better array syntax for PHP Here's your chance to weigh in
by Chris Cornutt June 10, 2008 @ 12:07:03
On the Debuggable blog, Nate Abele has posted a request for opinions on a topic that's been lighting up the PHP mailing lists (and other social media) lately - the alternative array syntax for PHP.
Well, there's a patch available, but 2/3 of the active PHP committers (who participated in the vote) voted against its inclusion. However, of the end-users participating in the discussion, 17 out of 20 voted in favor. Shortly before the voting was concluded, there was a call for some user-land input, so I decided to humbly submit my two pennies.
His comments support the idea, noting that arrays are "our bread and butter" for the language and should be updated to make them even easier to use (and more in line with the declarations of other variable types).
voice your opinion now!
array syntax declare update alternative opinion
C7Y: Optimizing with APC
by Chris Cornutt May 28, 2008 @ 12:58:07
Brian Shire has posted a new tutorial talking about some of the benefits of caching the functionality of your website (with things like APC, not file or database caching):
Opcode caches save energy, expenses, improve overall user experience on web sites, and it's often one of the simplest optimizations to implement. This article will explain the basics of installing, configuring, and tuning an opcode cache for PHP, the Alternative PHP Cache (APC).
The article focuses on how the APC works and how to get it up and working on your installation (as pulled from the pecl repositories). They look at some of the functions the extension's API includes (like ap_cache_info or ap_store for manual caching) as well as some more advanced topics like locking performance, working with TTL, cache priming and filtering.
voice your opinion now!
tutorial optimize apc alternative cache pecl extension
|
Community Events
Don't see your event here? Let us know!
|