Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2508

Hame syslog housekeeping a bit more efficient

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • None
    • Professional Edition
    • None

    Description

      This little change makes the delete query and also the count much faster as the mysql function has only to be called once and not for every row.

      -$where = "UNIX_TIMESTAMP(`timestamp`) < $cutoff";
      + $where = "`timestamp` < FROM_UNIXTIME($cutoff)";

      Attachments

        Activity

          [OBS-2508] Hame syslog housekeeping a bit more efficient
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          landy Mike Stupalov made changes -
          Assignee Original: Adam Armstrong [ adama ] New: Mike Stupalov [ landy ]
          Issue Type Original: Add New Device / OS [ 10002 ] New: Improvement [ 4 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          cramer Matthias Cramer created issue -

          People

            landy Mike Stupalov
            cramer Matthias Cramer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: