SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2004
    Location
    Montana, USA
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Subtraction faster on mysql server or in PHP module?

    Hi all,
    I have to perform a subtraction of unix timestamps tens of thousands of times in a loop. Is the subtraction operation itself faster on the database server, or should I just do the subtraction in the php code, after the query.

    Thanks in advance,
    Mike

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd think your best bet is to do as much in MySQL as possible.

    Aaron
    Aaron Brazell
    Technosailor




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •