1. A method for defragmenting indexes in a relational database, the relational database containing a set of tables, in which each table contains a set of indexes, in which, for each index, a fragmentation parameter is associated indicating a fragmentation level of the index, which comprises the steps of: a) getting a list of the set of tables; b) for each table of the list, getting the fragmentation parameter associated with each of the indexes of the table; and c) depending on a value of the fragmentation parameter, defragmenting an associated index.