EP2054822A1 - Verfahren und vorrichtung zum aktualisieren einer datenbank und computerprogrammprodukt - Google Patents
Verfahren und vorrichtung zum aktualisieren einer datenbank und computerprogrammproduktInfo
- Publication number
- EP2054822A1 EP2054822A1 EP07857247A EP07857247A EP2054822A1 EP 2054822 A1 EP2054822 A1 EP 2054822A1 EP 07857247 A EP07857247 A EP 07857247A EP 07857247 A EP07857247 A EP 07857247A EP 2054822 A1 EP2054822 A1 EP 2054822A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- file
- updated
- database
- new
- old
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
Definitions
- the invention relates to a method and a device for updating a database.
- a database system includes a database management system and the database.
- the database comprises at least one file to be updated, which is stored on a storage device.
- the invention relates to a computer program product comprising a computer readable storage medium having program instructions adapted to perform the method for updating the database.
- a modern database system regularly includes a database and a database management system.
- the database includes one or more files stored on one or more storage devices.
- the files contain the data of the database.
- the database management system is provided for managing the data of the database.
- the management of the database may include, for example, searching, reading, and / or writing data to the corresponding files of the database.
- an outdated file may be updated by an update command that includes a combination of search, read, and / or write commands.
- the object of the invention is achieved by the features of the independent claims.
- Advantageous embodiments of the invention are specified in the subclaims.
- the invention is characterized according to a first aspect of the invention by a method and a device for updating a database of a database system.
- the database system includes a database management system and the database.
- the database comprises at least one file to be updated.
- the file to be updated is stored on a storage device.
- To update the database the file to be updated is overwritten with a new file of the database with current data by means of a transfer command.
- the transfer command is written in a database language of the database system.
- the database language is preferably SQL, but may also be an alternative database language.
- the transfer command is preferably a copy command in which the source file does not necessarily have to be preserved.
- the transfer command represents a transaction with multiple substeps. For example, the file to be updated may be overwritten step by step with the new file.
- the file to be updated is checked how much the new file differs from the file to be updated.
- the file to be updated will only be overwritten with the new file if the new file differs by at least a specified amount from the file to be updated.
- the file to be updated is left on the storage device and updated depending on the new file, if the new file and the file to be updated differ at most or exactly by the predetermined amount. This can help to ensure that the file to be updated is completely replaced by the new file only if it is faster and / or more resource efficient than updating the file to be updated, depending on the new file.
- the predetermined amount can be determined, for example, depending on the available hardware.
- the file to be updated is overwritten with the new file when 20 percent or more of the new file is different from the file to be updated. This can help to replace the file to be updated with the new file only if it is faster and / or more resource efficient than updating the file to be updated, depending on the new file.
- the database comprises at least a first and a second file to be updated. It is checked to what extent the first or the second file to be updated differ from a first or second new file. Depending on this check, at least one of the two files to be updated will be overwritten with the corresponding new file. The other of the two files to be updated is updated only on the storage device. This allows a simple, fast, and / or resource-efficient update of the database if multiple files are updated in one operation, and if the new files differ in severity from the corresponding files to be updated.
- the file to be updated is backed up and / or deleted before being overwritten.
- the advantageous embodiments of the method can be readily transferred to advantageous embodiments of the device.
- the invention is characterized in a second aspect of the invention by a computer program product comprising a computer readable storage medium with program instructions.
- the program instructions are designed to carry out the method explained above.
- FIG. 1 shows a database system
- Figure 3 is a flow chart of a program for updating the database.
- a database system (FIG. 1) comprises a database management system 2 and a database 4.
- the database 4 comprises at least one file.
- the file is stored on a storage device of a computer.
- the database 4 includes a plurality of files stored on the storage device or a plurality of other storage devices.
- each file comprises at least one block, preferably comprising 1024 bytes.
- the storage device preferably comprises a hard disk storage unit. Alternatively or additionally, the storage device may comprise a mobile data carrier.
- the database system and / or in particular the database 4 can be a relational database System or a relational database 4 and / or a proprietary database system or a proprietary database 4 include.
- the database management system 2 is designed to manage data stored in the database 4, in particular on the storage device.
- the database management system 2 comprises a user interface IF, an SQL command processor SQL_CMD_PRO, a pager PAGER, a directory ID_LIB of index structures and an operating system interface OS IF.
- the database management system 2 communicates with the database 4.
- an alternative program module can be used.
- the alternative program module can be selected depending on the programming language used.
- a proprietary program module may be provided as an alternative to the SQL command processor SQL_CMD_PRO.
- the user interface IF preferably comprises input and output units, by means of which command lines can be entered into the database management system 2.
- the command lines are preferably written in a database language, preferably in SQL.
- the user interface IF forwards the written command lines to the SQL command processor SQL_CMD_PRO.
- the SQL command processor SQL_CMD_PRO determines a software execution plan depending on the command lines, and preferably, depending on at least one available index structure deposited in the ID_LIB directory of the index structures.
- the software execution plan is a section of the program that serves to make access to the data as efficient as possible.
- the software execution plan is passed to the pager PAGER by the SQL command processor SQL_CMD_PRO.
- the pager PAGER is used to determine a hardware execution plan depending on the software execution plan.
- the hardware execution plan is representative of how hardware, such as the hard disk storage device and / or the mobile media, which may include the database 4, must be driven to execute the software execution plan.
- the hardware execution plan is transferred to the operating system interface OS_IF, which converts the hardware execution plan into corresponding control signals for the storage device on which the data is stored.
- the database management system 2 is stored on a storage device of a navigation system.
- the database management system 2 may be used independently of the navigation system.
- the database management system 2 may be stored on a computer and used, for example, for managing music data.
- the database 4, in particular a file of the database 4 is preferably stored on a storage device of the navigation system.
- the database 4 preferably comprises a file POI of interesting places, a file 2D for two-dimensional map data, a file 3D for three-dimensional map data and / or a route file ROUTE for data for finding routes.
- the database management system basically has two different options (FIG. 3).
- a first possibility is to search for the elements of the file OLD_FILE to be updated by means of an update command SQL_UPD (FIG. 2) written in the database language and to replace them with current elements of a current file NEW FILE. This is especially useful if the new file NEW_FILE differs only slightly from the OLD FILE file to be updated. Minor means in this context that the file to be updated OLD FILE differs at most by a predetermined amount from the new file NEW_FILE.
- a second possibility is that, depending on a transfer command SQL COPY written in the database language, the file OLD_FILE to be updated is overwritten with the new file NEW FILE with the current data.
- the transfer command SQL_COPY is preferably a copy command.
- the file OLD_FILE to be updated is backed up before being overwritten. After saving the file OLD_FILE to be updated, the file OLD FILE to be updated can be deleted from the storage device or overwritten directly.
- the update command SQL_UPD and the transfer command SQL COPY are preferably representative of one transaction at a time.
- the transactions preferably include substeps.
- the OLD_FILE file to be updated can be updated or overwritten block by block, for example, always one block of the OLD FILE file to be updated with 1024 bytes at a time.
- the OLD FILE file to be updated can be backed up before being overwritten; in particular, the OLD FILE file to be updated can be backed up and / or blocked in blocks.
- the predetermined measure is preferably determined empirically.
- the file to be updated, OLD FILE can be updated on the navigation device as a function of files changed to different degrees, and first durations required for this update can be determined.
- first time durations it is preferable to determine second durations that are needed to overwrite the file OLD_FILE to be updated with the differently modified files.
- the first and second time periods may then be used to find the appropriate predetermined amount.
- the default measure may be between ten and thirty percent. In this context, this means that the OLD FILE file to be updated is only deleted and replaced by the new file NEW_FILE if the new file NEW FILE differs by ten to thirty percent from the OLD_FILE file to be updated.
- the database 4 comprises a database 6 to be updated and the database 6 to be updated comprises a file POI of interesting locations which differs from the predefined measure from a new file POI of the points of interest, then it is preferably transmitted by means of the transfer command SQL COPY replaced by the new file POI interesting places.
- the route file ROUTE to be updated of the database 6 to be updated differs from the new route file ROUTE by less than the predetermined amount, then the route file ROUTE to be updated is updated by means of the update command SQL UPD.
- a program for updating the database 4 is stored on the storage device of the navigation system.
- a computer in particular the navigation system on which the database management system is stored, can also be referred to as a device for updating the database.
- the program for updating the database is preferably started in a step S1, in which variables are initialized if necessary.
- a difference value DELTA is determined, which is representative of how much the file OLD FILE to be updated differs from the new file NEW_FILE.
- a step S3 it is checked whether the difference value DELTA is greater than a predetermined threshold value THD.
- the predetermined threshold THD represents the predetermined amount. If the condition of step S3 is satisfied, the processing is continued in step S5. If the condition of step S3 is not satisfied, the processing is continued in step S4.
- step S4 the file OLD_FILE to be updated is updated by means of the update command SQL UPD and left on the storage device.
- step S5 the file OLD_FILE to be updated is stored by means of a store instruction SAVE and thus saved and / or deleted by means of a deletion command DEL.
- a block of the file OLD_FILE to be updated can be stored or saved or deleted.
- a step S6 the new file NEW FILE is transferred to the storage device by means of the transfer command SQL_COPY and thus the file OLD FILE to be updated is transferred. if it has not yet been deleted in step S6.
- the delete command DEL may be included in the transfer command SQL COPY.
- the transfer command SQL_COPY is a copy command that automatically saves the new file NEW FILE instead of the file OLD_FILE to be updated.
- a block of the file OLD FILE to be updated can be overwritten with a block of the new file NEW_FILE.
- a step S7 the program can be terminated.
- the program for all to be updated files OLD_FILE the database to be updated 6 is processed again from the step Sl.
- the program can be executed individually for all blocks of the file OLD FILE to be updated.
- the program for updating the database and / or the database management system can be stored on a mobile storage unit.
- the mobile storage unit comprises program instructions which are adapted to update the database 6 to be updated.
- the mobile storage unit is for example a CD, DVD and / or a memory stick or flash memory.
- An advantage of updating database 4 using the SQL_UPD update command is that only the actual updated data is updated. However, after updating, logically related data, particularly old and updated data that is logically related, may no longer be spatially related to the storage device.
- updating by means of the transfer command SQL_COPY offers the advantage that data which belong together logically can also be stored spatially and / or physically contiguous on the storage device.
- map sections in particular the graphical data for illustration, are preferred. store the map sections spatially and / or physically coherently stored on the memory device, so that the corresponding map section can be read quickly. This is preferably also taken into account when creating the new file NEW FILE.
- parts of the map excerpt can be stored at different locations of the storage device, in particular if only a part of the corresponding map excerpt is updated.
- the read head of the storage device In order to display the map excerpt, the read head of the storage device then has to be brought to different locations of the storage medium of the storage device. This costs additional time.
- the database system can be used independently of the navigation system.
- the database may include fewer or more files.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| DE102006057977A DE102006057977A1 (de) | 2006-12-08 | 2006-12-08 | Verfahren und Vorrichtung zum Aktualisieren einer Datenbank und Computerprogrammprodukt |
| PCT/EP2007/063262 WO2008068250A1 (de) | 2006-12-08 | 2007-12-04 | Verfahren und vorrichtung zum aktualisieren einer datenbank und computerprogrammprodukt |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP2054822A1 true EP2054822A1 (de) | 2009-05-06 |
Family
ID=39059634
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP07857247A Withdrawn EP2054822A1 (de) | 2006-12-08 | 2007-12-04 | Verfahren und vorrichtung zum aktualisieren einer datenbank und computerprogrammprodukt |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20100094804A1 (de) |
| EP (1) | EP2054822A1 (de) |
| DE (1) | DE102006057977A1 (de) |
| WO (1) | WO2008068250A1 (de) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10289636B2 (en) * | 2010-02-08 | 2019-05-14 | Here Global B.V. | Virtual table generator for analyzing geographic databases |
| US8756261B2 (en) | 2010-07-09 | 2014-06-17 | Navteq B.V. | Method and system for handling binary large objects |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5729743A (en) * | 1995-11-17 | 1998-03-17 | Deltatech Research, Inc. | Computer apparatus and method for merging system deltas |
| DE19628168A1 (de) * | 1996-07-12 | 1998-01-22 | Ibm | Vernetztes multimediales Netz |
| KR19980024086A (ko) * | 1996-09-03 | 1998-07-06 | 니시무로 타이조 | 컴퓨터 시스템 및 화일 관리 방법 |
| US5999947A (en) * | 1997-05-27 | 1999-12-07 | Arkona, Llc | Distributing database differences corresponding to database change events made to a database table located on a server computer |
| US7243136B2 (en) * | 2000-01-18 | 2007-07-10 | Inktomi Corporation | Approach for managing and providing content to users |
| US20020112237A1 (en) * | 2000-04-10 | 2002-08-15 | Kelts Brett R. | System and method for providing an interactive display interface for information objects |
| US7277901B2 (en) * | 2003-07-10 | 2007-10-02 | Tacit Networks, Inc. | Collaborative file update system |
| EP1574952B1 (de) * | 2004-03-10 | 2008-04-16 | Sony Ericsson Mobile Communications AB | Automatisierter Datensicherungsspeicher in Firmware-Aufwertungen |
| US7801882B2 (en) * | 2004-10-01 | 2010-09-21 | Microsoft Corporation | Optimized constraint and index maintenance for non updating updates |
| US7401192B2 (en) * | 2004-10-04 | 2008-07-15 | International Business Machines Corporation | Method of replicating a file using a base, delta, and reference file |
-
2006
- 2006-12-08 DE DE102006057977A patent/DE102006057977A1/de not_active Ceased
-
2007
- 2007-12-04 US US12/518,257 patent/US20100094804A1/en not_active Abandoned
- 2007-12-04 EP EP07857247A patent/EP2054822A1/de not_active Withdrawn
- 2007-12-04 WO PCT/EP2007/063262 patent/WO2008068250A1/de not_active Ceased
Non-Patent Citations (3)
| Title |
|---|
| BURNS R ET AL: "Version management and recoverability for large object data", MULTI-MEDIA DATABASE MANAGEMENT SYSTEMS, 1998. PROCEEDINGS. INTERNATIO NAL WORKSHOP ON DAYTON, OH, USA 5-7 AUG. 1998, LOS ALAMITOS, CA, USA,IEEE COMPUT. SOC, US, 5 August 1998 (1998-08-05), pages 12 - 19, XP010298806, ISBN: 978-0-8186-8676-4, DOI: DOI:10.1109/MMDBMS.1998.709474 * |
| CHAMBERLIN D D ED - CHAMBERLIN D D: "A Complete Guide to DB2 Universal Database, Chapter 10.7 , MOVING DATA IN BULK", 1 January 1998, A COMPLETE GUIDE TO DB2 UNIVERSAL DATABASE; [THE MORGAN KAUFMANN SERIES IN DATA MANAGEMENT SYSTEMS], SAN FRANCISCO, CALIF. : MORGAN KAUFMANN, USA, PAGE(S) 643 - 658, ISBN: 978-1-55860-482-7, XP002515084 * |
| See also references of WO2008068250A1 * |
Also Published As
| Publication number | Publication date |
|---|---|
| DE102006057977A1 (de) | 2008-06-12 |
| WO2008068250A1 (de) | 2008-06-12 |
| US20100094804A1 (en) | 2010-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| DE102013215535B4 (de) | Sicherung oder wiederherstellung von daten mit hilfe eines hauptspeichers und nichtflüchtiger speichermedien | |
| DE69622253T2 (de) | System und verfahren für on-line- und echzeit-datenmigration | |
| DE69821844T2 (de) | Verfahren zur automatischen Installierung und übertragung von Daten auf ein Rechnerplattenlaufwerk | |
| DE69516538T2 (de) | Speicherung von rechnerdaten | |
| DE102020112512A1 (de) | Datenspeichergerät und Betriebsverfahren dafür | |
| DE112020005787T5 (de) | Verbesserte dateisystem-unterstützung für zonen-namespace-speicher | |
| DE202010017613U1 (de) | Datenspeichervorrichtung mit host-gesteuerter Speicherbereinigung | |
| DE102011086098A1 (de) | Parallele Speicherlese- und Speicherschreib-Operationen in einem Speicher mit serieller Schnittstelle | |
| DE102008057219A1 (de) | Verfahren zum Betreiben eines Solid-State-Speichersystems, Solid-State-Speichersystem und Computersystem | |
| DE102012208141A1 (de) | Ausgleich nachlassender Funktionsfähigkeit | |
| DE202010017644U1 (de) | Hybridspeichervorrichtung | |
| DE102016010277A1 (de) | Verfahren und systeme zum verbessern von speicher-journaling | |
| DE102019102861B4 (de) | Verfahren und Vorrichtung zur Abschätzung der Abnutzung eines nicht-flüchtigen Informationsspeichers | |
| DE112021005198B4 (de) | Hochauflösendes Bandverzeichnis für bandgestützte Speicherung | |
| DE112004001255T5 (de) | Speichervorrichtung und Speichersystem | |
| DE102020126409A1 (de) | Speichervorrichtung zum Speichern von Modellinformationen, die Speichervorrichtung enthaltendes Speichersystem und Betriebsverfahren des Speichersystems | |
| DE112010004264B4 (de) | Selektiver Schreibschutz für das Austesten der Wiederherstellung nach einem Absturz | |
| EP1067460B1 (de) | Datenträger mit wiederherstellbarem Basisdatengrundzustand und Verfahren zu dessen Herstellung | |
| DE112012004297B4 (de) | Verfahren zum Erkennen von Datenmanipulationen in einem Bandlaufwerk und Dateisystem | |
| DE112018005768T5 (de) | Copy-source-to-target-verwaltung in einem datenspeichersystem | |
| DE102005037855A1 (de) | System und Verfahren zum Speichern von Benutzerdaten in einer Partitionsdatei oder zum Verwenden einer Partitionsdatei, die Benutzerdaten enthält | |
| WO2008068250A1 (de) | Verfahren und vorrichtung zum aktualisieren einer datenbank und computerprogrammprodukt | |
| EP2948894B1 (de) | Verfahren zum sicheren löschen eines nichtflüchtigen halbleiter-massenspeichers, computersystem sowie computerprogrammprodukt | |
| DE60210118T2 (de) | Sicherheitseinrichtung für eine massenspeicherung | |
| DE60226276T2 (de) | Verfahren und anordnung zum modifizieren des inhalts eines korrekturidentifikationsregisters |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| 17P | Request for examination filed |
Effective date: 20090323 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC MT NL PL PT RO SE SI SK TR |
|
| AX | Request for extension of the european patent |
Extension state: AL BA HR MK RS |
|
| 17Q | First examination report despatched |
Effective date: 20090731 |
|
| RIN1 | Information on inventor provided before grant (corrected) |
Inventor name: TANTZ, UWE Inventor name: SUH, JONG-HYUN Inventor name: SASSE, VOLKER Inventor name: PFEIFLE, MARTIN |
|
| DAX | Request for extension of the european patent (deleted) | ||
| RBV | Designated contracting states (corrected) |
Designated state(s): DE FR GB |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
| 18D | Application deemed to be withdrawn |
Effective date: 20110823 |