摘要 |
The present invention discloses a method and a system for storing data (1000) in a database, the method comprising: dividing data (1000) into a sequence of segments (101, 102, 103, 104), each segment having a size lower than a predetermined threshold; storing a first segment (101) of the sequence into a first field (981) of a record (98r) of a main table (98) of the database; storing an index (101i) indexing the data (1000) into a second field (982) of the record (98r) of the main table; storing the other segments (102, 103, 104) of the sequence (101, 102, 103, 104) into first fields (9911, 9912, 9913) of corresponding records (99r1, 99r2, 99r3) of an auxiliary table (99) of the database; generating indexes (102i, 103i, 104i) associated to the other segments (102, 103, 104) and storing each generated index (103i) into a second field (9922) of the record (99r2) of the auxiliary table which stores the associated segment (103) of the sequence and also in a third field (9931) of the record (99r1) of the auxiliary table which stores a previous segment (102) in the sequence, wherein a third record (983) of the main table stores the index (102i) of a first segment (102) of the sequence which is stored in the auxiliary table. |