FW: [PHP] date fiedl
| From: | Angelo Zanetti | Date: | Mon, 19 Jan 2004 12:56:06 +0000 |
| Subject: | FW: [PHP] date fiedl | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-175012@lists.php.net to get a copy of this message | ||
I have a feeling that saving it as a numeric field would be quicker. Numeric
fields are generally quicker than alphanumeric fields and the date field in
mySQL has the format of yyyy-mm-dd, so it probably does some error
checking/validation to see the format is correct and also it contains
alphanumeric characters being -'s. The best way to probably find out is to
select a large amount of records in both formats and see which is quicker.
hth
-----Original Message-----
From: Diana Castillo [mailto:diana@interhotel.com]
Sent: Monday, January 19, 2004 1:02 PM
To: php-general@lists.php.net
Subject: [PHP] date fiedl
Does anyone know if there is any speed advantage to saving a date as a unix
timestamp or a numeric field instead of a date field? (in Mysql)
thanks,
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: diana@hotelkey.com
Web : http://www.hotelkey.com
http://www.destinia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--------------------------------------------------------------------
Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is
intended for the attention and use only of the addressee.
Should you have received this e-mail in error, please delete
and destroy it and any attachments thereto immediately.
Under no circumstances will the Cape Technikon or the sender
of this e-mail be liable to any party for any direct, indirect,
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911