IT Community - Software Programming, Web Development and Technical Support

Database space-saving functions available in php

This is a discussion on Database space-saving functions available in php within the PHP Programming forums, part of the Web Development category; Hui guys can anyone let me know what are the database space-saving functions available in php : - Vignesh...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 04:13 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Thumbs up Database space-saving functions available in php

Hui guys can anyone let me know what are the database space-saving functions available in php :


- Vignesh
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-18-2008, 04:20 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Thumbs up Re: Database space-saving functions available in php

1.Use ip2long() and long2ip() to store the IP adresses as Integers instead of storing them as strings, which will reduce the space from 15 bytes to 4 bytes. This will also increase search speed and make it easy to see if a ip falls within a specified range.

2.Use gzcompress() and gzuncompress() to reduce the strings before you store them in a database. The gzcompress can compress plain-text up to
90%. The only reason why you shouldn’t use it is when you need full-text indexing capabilities.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I tell when Daylight Saving is in effect? itbarota HTML, CSS and Javascript Coding Techniques 1 01-01-2008 08:40 PM
what is name space? prasath C and C++ Programming 1 08-03-2007 03:18 AM
How to encrypt the passwords before saving to database in c#? itbarota C# Programming 1 07-26-2007 12:19 AM
Taking Snapshot and saving image clipping in flash oxygen Flash Actionscript Programming 0 07-17-2007 12:12 AM
web space jeyaprakash.c Web Design Help 3 05-22-2007 08:35 PM


All times are GMT -7. The time now is 03:51 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0