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...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |