Fwd: Waste of storage space?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Från: Yeti <yeti@xxxxxxxxxx>
Datum: ti 28 okt 2008 23.07.11 GMT+01:00
Till: "Frank Arensmeier" <frank@xxxxxxxxxxxx>
Ämne: Re:  Waste of storage space?

Hej,

why not do a simple strlen() before comparison?
Like if strlen (or mb_strlen()) is less than 50 do not serialize/ compare.

Or Like levenchtein(), You could do :
<?php
(strlen($string2) - similar_text($string,$string2))
?>
to see how much characters have been changed.



Thank you for your respons.

I have thought of such a sorting mechanism too. But on the other hand, the biggest drawback would be that even minor changes that might be really important could get lost. And my goal is to really keep track on everything my users do. And, in the long run, the problem with the database that eventually could/will grow very large in size, is not solved.

//frank

..please keep responses on list.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux