Today, we’re very excited to pull back the curtain and announce Couchbase Server 4.5 Developer Preview (DP). This release is an early developer milestone that comes with many exciting features for more efficient querying, advanced data access, powerful indexing and more comprehensive administration.
So, what’s new in the 4.5 Developer Preview?
Let’s take a look at brief overview of what’s new in these freshly released bits –
Workbench de consulta
¿Sueñas con escribir consultas y navegar por tus datos desde la consola web de administración de Couchbase? In 4.5 DP, the query workbench allows developers and administrators to execute ad-hoc queries directly from the admin web console and interact with the system. You can also browse data models with automatically inferred schemas. Learn more about the integrated query editor aquí.
Extended Join Syntax
¿Es necesario escribir los JOIN de forma conmutativa? With extended join syntax in Couchbase 4.5 DP, the new JOIN ON KEY … FOR keyword allows developers to specify JOIN operations that can use the left or the right keyspace for the JOIN. This extended syntax in N1QL, makes better use of indexes to perform the JOIN operation faster across the two sides, and substantially lowers JOIN latencies. Learn more about extended join syntax aquí.
Consider the following N1QL example on beer-sample data:
1 |
SELECCIONAR * DESDE `cerveza-muestra` cerveza ÚNASE A `cerveza-muestra` cervecería EN TECLAS cerveza.brewery_id DONDE cerveza.tipo="cerveza" Y cervecería.tipo="cervecería" Y cervecería.estado="California"; |
This query cannot use any index on brewery to directly access breweries in California because “brewery” is on the RHS.
Now, if a new index is created on the brewery_id attribute like:
1 |
CREAR ÍNDICE beer_brewery_id EN `cerveza-muestra`(brewery_id) DONDE tipo="cerveza"; |
Using the new index joins, the same query can be written as :
1 |
SELECCIONAR * DESDE `cerveza-muestra` cervecería ÚNASE A `cerveza-muestra` cerveza EN CLAVE cerveza.brewery_id PARA cervecería DONDE cerveza.tipo="cerveza" Y cervecería.tipo="cervecería" Y cervecería.estado="California"; |
Búsqueda integrada de texto completo
¿Necesita su aplicación buscar datos almacenados en Couchbase? Search is a key technology when it comes to search documents that contain human-language text information. Couchbase Server 4.5 DP includes a sneak preview of full text search, fully integrated as a Couchbase service for the first time. Built on the popular open-source project Bleve, Couchbase Full Text Search adds support for a variety of query types including match, phrase, fuzzy, prefix, regex, range queries and more, as well as faceting, scoring, and highlighting. You can learn more about integrated full-text search in Couchbase Server aquí.
Partial updates, reads, and more
Want to selectively update only a part of a JSON document in your application? With 4.5 DP, developers now have extended APIs to operate only on parts of the document without having to send the entire document back and forth between client and server. The result – better performance and efficiency in the network IO path, especially when working with large documents. Check out our documentation for further details on partial document updates aquí.
Índices globales optimizados para la memoria
Do you need faster indexes? Couchbase 4.5 DP introduces in-memory global indexes, a new memory-optimized storage option that provides much faster indexing by performing index maintenance completely in memory. This new option for global indexes supplements the regular storage option that has been available since Couchbase Server 4.0. Memory-optimized indexes provide a fresh index that is up to date even under aggressive mutation rates. Compared to the earlier global index storage option, it can process mutations (INSERT/UPDATE/DELETE operations) at a much faster pace and provide much lower latency queries. You can learn more about memory-optimized global indexes aquí.
Indexación de matrices
¿Tiene documentos con matrices incrustadas? NoSQL gives developers flexibility to experiment with newer ways of modeling data, and developers commonly embed arrays in their documents. While N1QL (SQL for JSON) supports array processing within queries, it’s now possible to create an index of array elements ranging from plain scalar values to complex arrays or JSON objects nested deeper in the array, and further improve N1QL query performance. This is a huge leap from the previous versions where secondary indexes could only be created and subsequently queried on whole arrays. You can learn more about array indexing in Couchbase 4.5 DP aquí.
1 2 3 |
CREAR ÍNDICE isched EN `viaje-muestra` ( DISTINTO ARRAY v.día PARA v EN horario FIN ) DONDE tipo = "ruta"; |
1 2 3 4 |
SELECCIONE cuente(*) DESDE `viaje-muestra` DONDE tipo = "ruta" Y CUALQUIER v EN horario SATISFACE v.día = 3 FIN; |
Perfiles de consulta y supervisión
¿Quiere saber cuáles son sus N consultas más lentas en el sistema? Couchbase Server 4.5 DP introduces a new set of system catalogs and APIs for monitoring the operation of individual queries and query service nodes. Using these APIs, Administrators can now monitor active queries and connections as well as profile queries to identify and diagnose performance issues. Learn more about query profiling and monitoring aquí.
1 2 3 |
SELECCIONAR * DESDE sistema:solicitudes_activas; SELECCIONAR * DESDE sistema:solicitudes_realizadas; SELECCIONAR * DESDE sistema:prepara; |
Copia de seguridad y restauración de nivel empresarial
¿Quieres hacer copias de seguridad y restaurar grandes conjuntos de datos rápidamente? Couchbase Server 4.5 provides a new enterprise backup and restore tool that can backup larger datasets with significantly higher performance than before. The newly engineered, scalable, high-performance backup and restore tool allows Couchbase Server to provide faster and more scalable recovery options to better integrate with disaster recovery planning. Learn more about enterprise grade backup and restore tool aquí.
Certificados X.509
¿Necesita proteger sus comunicaciones cliente-servidor y entre centros de datos? With X.509 certificates, Couchbase Server strongly encrypts client-server communications and cross datacenter replication. You can generate and load certificates from any CA authority that you choose, and use those certificates in Couchbase to encrypt on-the-wire communication and establish strong trust between client-and-server, or between clusters. Learn more about X.509 certificates in Couchbase aquí.
Otras mejoras
That’s not all. Couchbase Server 4.5 DP also added several other enhancements. Some of the notable ones in the developer preview release are:
- Compatibilidad con la plataforma Debian 8
- N1QL enhancements such as array insert function, object add, put, and remove functions, and more. See Other N1QL Enhancements for details.
- Simplified administration for large node counts (>100 node clusters).
So, how do I get my hands on 4.5 DP?
Remember this before you take the plunge: This is a Developer Preview version of Couchbase Server 4.5 and is intended for development purposes only. This release is not supported in production. We consider Developer Preview releases to have some rough edges and bugs. Couchbase Server 4.5 is still under active development, which means that it may change significantly before the final GA release.
Denos su opinión sobre su experiencia y le escucharemos. Dar tu opinión es muy sencillo. Aquí encontrará todas las formas de hacer oír su voz: https://www.couchbase.com/forums/ o Stackoverflow.
There are many ways to learn more about the newest developer preview release of Couchbase –
- Si quieres ponerte manos a la obra, puedes descargar la vista previa para desarrolladores desde nuestro página de descargas.
- If you’re a docker fan, you can even spin-up Couchbase 4.5 DP in a docker container from docker hub.
- Consulte nuestro documentación for the developer preview release.
- Echa un vistazo a la notas de la versión.
- If you are looking to develop in Java, .NET, Node.js, or other languages with native SDKs, download the latest SDKs version under the “client libraries” section of the página de descargas.
Visit our Couchbase Server 4.5 DP page for more details.