Electronic device and method for updating database based on reserved space
AssigneeSamsung Electronics Co., Ltd.
InventorsKisung Lee, Hyeeun Jun, Kiwon Song
Life of this patent
Estimating the term…
Abstract
Various embodiments of the disclosure disclose a method and an apparatus, which includes: a display, a memory, and a processor operatively connected to the display and/or the memory, wherein the processor is configured to: add a frame to an appended file based on a request to update application data, allocate a reserved space to the appended file, update a database file based on an update condition, and allocate the reserved space to the database file.
Claims9
An electronic device comprising:
- a display;
- a memory comprising a database file, the database file comprising a plurality of pages corresponding to application data and reserved space;
- and
- a processor operatively connected to the display and/or the memory,
- wherein the processor is configured to:
- add a frame corresponding to an updated page of the application data stored in the database file to an appended file, based on a request to update the application data,
- determine whether the frame is initially added to the appended file,
- allocate, when the frame is initially added to the appended file, the reserved space to the appended file,
- determine, when the frame is not initially added to the appended file, whether to allocate the reserved space to the appended file based on a storage space of the memory,
- update the database file to apply the frame stored in the appended file based on identifying that an update condition is satisfied, and
- after updating the database file, allocate the reserved space to the database file,
- wherein the update condition comprises a condition that a size of the appended file corresponds to a predetermined size, or a condition that the number of frames included in the appended file corresponds to a predetermined number.
A method for operating an electronic device including a processor and a memory comprising a database file, the database file comprising a plurality of pages corresponding to application data and reserved space, the method comprising:
- receiving a request to update application data stored in the memory of the electronic device;
- adding a frame corresponding to an updated page of the application data stored in the database file to an appended file, based on the update request;
- determining whether the frame is initially added to the appended file;
- allocating, when the frame is initially added to the appended file, the reserved space to the appended file;
- determining, when the frame is not initially added to the appended file, whether to allocate the reserved space to the appended file based on a storage space of the memory;
- updating the database file to apply the frame stored in the appended file based on identifying that an update condition is satisfied;
- and
- after updating the database file, allocating the reserved space to the database file,
- wherein the update condition comprises a condition that a size of the appended file corresponds to a predetermined size, or a condition that the number of frames included in the appended file corresponds to a predetermined number.
Dependencies are inferred from the claim text.