obtained only in terms of query results presentation,
but not regarding the set of obtained data items.
Therefore, we can see that the goals of this
experiment were achieved. It was possible to require
the same information from both source and target
databases. In addition, it was possible to obtain the
same set of query results from both ones.
Table 3: A query example used in the experiment.
SQL
MongoDB
query language
select pe.*, pf.*
from Person pe inner join Professor
pf on pe.cpf=pf.cpf
inner join IC_Professor i on
pf.cpf=i.cpf
where pe.cpf = '95175368429'
union
select pe.*, pf.*
from Person pe inner join Professor
pf on pe.cpf=pf.cpf
inner join Invited_Professor ip on
pf.cpf= ip.cpf
where pe.cpf = '95175368429'
db.Person.find({cpf:
"98632541754",
$or:[{type: "ic"},{
type: "invited"}]},
{cpf:1, rg:1,
name:1, birth_date:1,
naturalness:1,
nationality:1, user:1,
password:1,
profile:1, e_mail:1,
type:1,
additional_info:1})
5 RELATED WORK
Data conversion approaches regarding Relational and
NoSQL models have been tackled. Zhao et al. (2014)
propose an automatic approach for converting
relational database schemas to NoSQL ones, which
establishes conceptual rules for the denormalization of
the original data. Potey et al. (2015) provide a tool to
perform data conversion, in which the target database is
an equivalent relational schema in a Document
structure. Karnitis and Arnicans (2015) instead provide
a semi-automatic approach, which allows a
comprehension of the relationships that the tables carry
one over the other by a classification strategy. Mpinda
et al. (2015) present a data conversion process that
aggregates data tables, which are analyzed along with
the established relationships.
Our proposal extends some of these concepts.
We provide a denormalization technique and we
deal with some kinds of conceptual relationships, by
producing references when possible. We have a
table classification strategy to enrich the overall
process. Finally, our approach may be applied to any
of the target NoSQL models.
6 CONCLUSIONS
We presented the R2NoSQL approach, which allows
data conversion between relational and NoSQL
databases. This approach is based on conceptual
mappings defined between structural concepts from
relational and NoSQL ones.
Experiments have shown that obtained NoSQL
database is consisted with the source relational one,
by executing the same set of queries in both source
and target databases. In fact, they produced similar
query results.
As future work, some enhancements will be
done: (i) the tool will be extended to accomplish
data conversion by considering other categories of
NoSQL systems, and (ii) an automated query
conversion process will also be taken into account.
REFERENCES
Han, J., Haihong, E., Le, G., Du, J., 2011. Survey on
NoSQL database. In: Pervasive computing and
applications (ICPCA), 2011 6th international
conference on. IEEE. p. 363-366.
Istvan, Z., Alonso, G., Blott, M., Vissers, K., A flexible
hash table design for 10Gbps key-value stores on
FPGAs. In: Field Programmable Logic and
Applications (FPL), 2013 23rd International
Conference on. IEEE. p. 1-8.
Karnitis, G. and Arnicans, G., 2015. Migration of relational
database to document-oriented database: Structure
denormalization and data transformation. Communication
Systems and Networks (CICSyN), 7th International
Conference on Computational Intelligence. p. 114–118.
Lakshman, A., Malik, P., 2010. Cassandra: a decentralized
structured storage system. ACM SIGOPS Operating
Systems Review, v. 44, n. 2, p. 35-40.
McMurtry, D., Oakley, A., Sharp, J., Subramanian, M.,
and Zhang, H., 2013. Data access for highly-scalable
solutions: Using sql, nosql, and polyglot persistence.
Microsoft patterns & practices.
MongoDB, 2015. Available at https://www.mongodb.org/.
Last access on December, 2015.
Mpinda, S. A. T., Maschietto, L. G., and Bungama, P. A.,
2015. From relational database to columnoriented
nosql database: Migration process. International
Journal of Engineering Research & Technology
(IJERT), 4. p. 399–403.
Neo4j, 2015. Available at http://neo4j.com. Last access on
December, 2015.
Potey, M., Digrase, M., Deshmukh, G., and Nerkar, M.,
2015. Database migration from structured database to
non-structured database. International Conference on
Recent Trends & Advancements in Engineering
Technology (ICRTAET 2015), p. 1–3.
Redis, 2015. Available at http://redis.io/. Last access on
December, 2015.
Zhao, G., Lin, Q., Li, L., Li, Z. 2014. Schema Conversion
Model of SQL Database to NoSQL. In: P2P, Parallel,
Grid, Cloud and Internet Computing (3PGCIC), 2014
Ninth International Conference on. IEEE. p. 355-362.