Ad Widget

Collapse

Help needed History table partition / index - approach

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarathyme
    Member
    • Mar 2009
    • 58

    #1

    Help needed History table partition / index - approach

    I use Zabbix with MySQL InnoDB.

    Two things

    1) History table is nearly 20 GB (history.ibd). Should I partition MySQL table?
    Would it be safe to do it?

    (I have seen this
    http://forums.mysql.com/read.php?106...2641#msg-82641
    Not sure Brain has done partitioning)

    2) We also have another requirement for reporting, that needs history table data.
    Would like to take last days history data and send to reporting system.
    I see zabbix has index on history table (itemid,clock).
    Our query would be like select * from history where clock > and clock < .
    Should I have to create index on (clock) as well.

    Any help highly appreciated

    Thanks
    Vijay
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #2
    Have you tried this?

    Comment

    • sarathyme
      Member
      • Mar 2009
      • 58

      #3
      No i have not tried it yet.
      Are you planning to do the same?

      Comment

      • xsbr
        Junior Member
        Zabbix Certified Specialist
        • Oct 2009
        • 25

        #4
        Originally posted by sarathyme
        No i have not tried it yet.
        Are you planning to do the same?
        sarathyme, I created a post about partitioning:

        Comment

        Working...