 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Sameer Borate: Storing images into a database - resolving a contentious matter
by Chris Cornutt February 21, 2013 @ 11:16:45
In this new post to his CodeDiesel site Sameer Borate looks at something that's been a controversial topic with developers (not just PHP) about storing binary data, like images, in a database instead of on the local file system.
There is much discussion and argument with no final say on the issue. In one of my recent project the same issue was raised; the client and myself discussing the benefits and drawback of storing the images into a database. The project needed storing around 50,000 images, so it was important to get the question resolved satisfactorily. After much deliberation we settled on using the file system. The major factor in the decision was that we needed the database and images decoupled as we would be having multiple databases using the same set of images.
He goes on to talk about some of the things you should consider when you're deciding if storing images in the database is the right thing for your application including:
- The bloat that can come with storing binary data (larger database size)
- Updating images requires two operations - updating the database and updating the cached image locally
- Images usually serve faster when they come from the filesystem through the web server
- BLOB (a common type for binary data storage) is variable-width and can degrade performance
You can read the rest of the reasons (and get more detail on the ones above) in the rest of the post.
voice your opinion now!
images binary data storage database benefits disadvantages
ZetCode.com: PostgreSQL PHP Tutorial
by Chris Cornutt May 07, 2012 @ 11:14:40
On the ZetCode.com site there's a five part tutorial posted about getting your PHP application up and running on a PostgreSQL database (updated on the 4th).
This is a PHP tutorial for the PostgreSQL database. It covers the basics of PostgreSQL programming with PHP. The examples were created and tested on Linux. [...] PostgreSQL is a powerful, open source object-relational database system. It is a multi-user, multi-threaded database management system. It runs on multiple platforms including Linux, FreeBSD, Solaris, Microsoft Windows and Mac OS X. PostgreSQL is developed by the PostgreSQL Global Development Group.
The chapters guide you through every step you'll need:
voice your opinion now!
postgresql tutorial introduction read images metadata transactions
PHPClasses.org: 3D graphics in pure PHP
by Chris Cornutt November 08, 2006 @ 08:13:00
As spotlighted by the folks over on PHPClasses.org, there's a developer, László Zsidi, who has contributed several packages to the repository - including some that work to create 3D images with just the built-in functions PHP provides.
He has developed several pure PHP components that implement impressive 3D animated graphics, like a 3D objects rendering engine, emulate a waving flag or the reflex of an image near a lake. The generated frames are combined into a single animated GIF with another pure PHP component also written by László. All these components were nominated to the PHP Programming Innovation Award for the evident creativity, demonstrating that PHP can be used for non-trivial software applications.
Some of the libraries in the listing include:
voice your opinion now!
3d graphics builtin functionality reflect gif animation images 3d graphics builtin functionality reflect gif animation images
Paul Stamatiou's Blog: 5 Ways to Speed Up Your Site
by Chris Cornutt June 22, 2006 @ 07:31:06
Paul Stamatiou shares with us today five ways to speed up your site, some quick and easy recommendations to making your site fly.
Throughout the blogosphere I'm always seeing these blogs, that while they look great, are horribly slow and overburdened. Over the past few months I have become somewhat of a website optimization specialist, bringing my own site from an over 250kB homepage to its current 34kB.
I will help you achieve some of the same success with a few, powerful tips. Most of these are common sense, but I can't stress their importance enough. I will concentrate on the website and not the server in this article, as there are too many things to discuss when it comes to server optimization.
The five tips mentioned include "Reduce Overall Latency by Reducing HTTP Requests" and "Compression", each with a paragraph or so of explaination as to what it is and how to implement it. There's even a PHP-specific one that talks about a paring down of the bits of functionality that really aren't needed.
voice your opinion now!
speed up site ways latency images compression javascript extra speed up site ways latency images compression javascript extra
|
Community Events
Don't see your event here? Let us know!
|