Incremental mapping compilation in an object-to-relational mapping system
View/Open
p1269-bernstein.pdf (1,521Mb) (Restricted access)
Request copy
Què és aquest botó?
Aquest botó permet demanar una còpia d'un document restringit a l'autor. Es mostra quan:
- Disposem del correu electrònic de l'autor
- El document té una mida inferior a 20 Mb
- Es tracta d'un document d'accés restringit per decisió de l'autor o d'un document d'accés restringit per política de l'editorial
Cita com:
hdl:2117/20267
Document typeConference report
Defense date2013
Rights accessRestricted access - publisher's policy
All rights reserved. This work is protected by the corresponding intellectual and industrial
property rights. Without prejudice to any existing legal exemptions, reproduction, distribution, public
communication or transformation of this work are prohibited without permission of the copyright holder
Abstract
In an object-to-relational mapping system (ORM), mapping expressions explain how to expose relational data as objects and how to store objects in tables. If mappings are sufficiently expressive, then it is possible to define lossy mappings. If a user updates an object, stores it in the database based on a lossy mapping, and then retrieves the object from the database, the user might get a different result than the updated state of the object; that is, the mapping might not "roundtrip." To avoid this, the ORM should validate that user-defined mappings roundtrip the data. However, this problem is NP-hard, so mapping validation can be very slow for large or complex mappings.
We circumvent this problem by developing an incremental compiler for OR mappings. Given a validated mapping, a modification to the object schema is compiled into incremental modifications of the mapping. We define the problem formally, present algorithms to solve it for Microsoft's Entity Framework, and report on an implementation. For some mappings, incremental compilation is over 100 times faster than a full mapping compilation, in one case dropping from 8 hours to 50 seconds.
CitationBernstein, P.A. [et al.]. Incremental mapping compilation in an object-to-relational mapping system. A: ACM SIGMOD Conference. "Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data". 2013, p. 1269-1280.
ISBN978-1-4503-2037-5
Publisher versionhttp://dl.acm.org/citation.cfm?doid=2463676.2465294
Files | Description | Size | Format | View |
---|---|---|---|---|
p1269-bernstein.pdf | 1,521Mb | Restricted access |