Method and device for updating aggregation objects
An object and object header technology, applied in the field of updating aggregated objects, can solve the problems of analyzing metadata, taking a long time to read data, low disk space usage, and high pressure of disk writing data, so as to improve disk space usage and time-consuming Short, reducing the effect of writing pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 As shown, a method of updating an aggregate object includes the following steps:
[0040] Step S101: Determine the source files that meet the conditions.
[0041] Step S102: Write the qualified source files into a large file to form an aggregation object.
[0042] Step S103: Save the aggregation object to disk.
Embodiment 2
[0044] Such as figure 2 As shown, a method of updating an aggregate object includes the following steps:
[0045] Step S201: Predefine thresholds required for source file aggregation, including predefined source file thresholds and aggregation object thresholds.
[0046] Step S202: Judging the size of the aggregation object, if the size of the aggregation object is greater than the threshold of the aggregation object, proceed to step S206 and directly write it to the disk; if the size of the aggregation object file is smaller than the threshold of the aggregation object, proceed to step S203 to read the source file , write the source file to the aggregate object.
[0047] Step S204: judging the source file that meets the conditions; it includes, judging the size of the source file, if the size of the source file is greater than the source file threshold, then proceed to step S206, directly write it to the disk, if the source file size is smaller than the source file threshol...
Embodiment 3
[0051] Such as image 3 As shown, a method of updating an aggregate object includes the following steps:
[0052] Step S301: Predefine thresholds required for source file aggregation, including predefined source file thresholds and time thresholds.
[0053] Step S302: Read the source file.
[0054] Step S303: Determine whether the source file size reaches the source file threshold, if the source file size is greater than the source file threshold, then proceed directly to step S306, and write it to disk, if the source file size is smaller than the source file threshold, then proceed to step S304, which will meet Conditional source files are written to one large file forming aggregate objects.
[0055] Step S305: Before saving the aggregation object to the disk, it also includes, according to the time of the last write to disk, judging whether the time interval reaches the time threshold, if so, go to step S306, and write the aggregation object to the disk for storage, if not...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


