Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Information persistence and query method and device

A persistent and query condition technology, applied in the field of information search, can solve problems such as waste, inability to fully reduce the query scope, and multiprocessing resources

Active Publication Date: 2014-05-21
ALIBABA GRP HLDG LTD
View PDF5 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] These solutions provided by the existing technology are generally proposed for the storage characteristics of relational databases, and do not take into account some characteristics of HBase, such as HBase is a column-based storage mode, etc., so there is no support for the same business entity object Multiple versions of persistence and query cannot fully reduce the query scope when querying business entity objects. Queries usually need to scan the entire table in HBase that stores business entity objects, which will waste more processing resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Information persistence and query method and device
  • Information persistence and query method and device
  • Information persistence and query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to provide an object-oriented database information persistence solution based on key-value database characteristics, to solve the problem that the business entity object persistence solution in the prior art is not applicable to the characteristics of key-value databases such as HBase, this application The embodiment provides an information persistence solution. In this solution, for any business entity object, the attribute values ​​of the business entity object are stored in different columns of the same row of the data table. Since key-value databases such as HBase implement information persistence based on the column storage mode, this solution stores the attribute values ​​corresponding to the same business entity object in different columns of the same row, and optionally, the The row key (Row-Key) used as the basis for business entity object query is stored in the first column for subsequent search. Therefore, compared with the information persistence sc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an information persistence and query method and device applied to a key-value database. Aiming at any business entity object, the attribute values of the business entity object are respectively stored in different columns of the same row of a datasheet; a row key is generated based on the attribute values of the business entity object. As information persistence of the database, such as a Hbase, is realized in a column-based storage mode, and according to the scheme, the attribute values corresponding to the same business entity object are stored in different columns of the same row, compared with an information persistence scheme, aiming at a relational database, provided by the prior art, the scheme provided by the embodiment of the invention can be matched with the characteristic, about the storage mode, of the key-value database. The invention also discloses a query method and device aiming at objects.

Description

technical field [0001] The present application relates to the technical field of information search, in particular to an information persistence and query method and device applied to a key-value database. Background technique [0002] HBase (Hadoop Database) is a key-value database, which is a distributed, column-oriented open source database. This technology comes from the Google paper "Bigtable: A Distributed Storage System for Structured Data" written by Chang et al. [0003] HBase is different from general relational databases, it is a database suitable for unstructured data storage. Another difference from relational databases is that HBase uses a column-based storage model. At present, for relational databases, there are many relational object mapping (ORM) frameworks for object-oriented encapsulation of JDBC, and JDO (Java Data Object) and JPA (Java Persistence API) for business entities represented by Java classes. Object persistence specification. Among them, JD...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/316
Inventor 肖荣
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products