Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

N1QL queries, tools, and other developer features: what’s new in Couchbase 5.0 – Couchbase Connect New York 2017


Published on

Keeping up with the latest tools and changes is always a challenge. Graphical N1QL query monitoring, adaptive indexing, and profiling updates are just some of the updates for developers in Couchbase Server 5.0.
Join this developer-centric, demo-filled session to quickly learn about the newest developer tools and enhancements included with Couchbase Server. This session will cover new tools for data import/export, JSON schema exploration, N1QL Query Workbench, query plan visualization and performance tuning, and command-line query execution. Learn about these new tools and how they accelerate and simplify application development.

Published in: Software
  • Be the first to comment

  • Be the first to like this

N1QL queries, tools, and other developer features: what’s new in Couchbase 5.0 – Couchbase Connect New York 2017

  1. 1. ©2017 Couchbase Inc. 1 Developer Features: What’s New in Couchbase 5.0
  2. 2. ©2017 Couchbase Inc. 2 Anil Kumar Principal Product Manager LinkedIn – Twitter – @anilkumar1129
  3. 3. ©2017 Couchbase Inc. 3 Eben Haber Senior Software Engineer & User Advocate LinkedIn –
  4. 4. ©2017 Couchbase Inc. 4 Objectives • Query Workbench Enhancements • Visual Query Plan • Query History • Query Preferences • Query Import/Export • Schema Discovery • Query Monitoring • Couchbase Import/ExportTools • CouchbaseWeb Console • DEMO !!!
  5. 5. ©2017 Couchbase Inc.©2017 Couchbase Inc. 5 Query Workbench Enhancements
  6. 6. ©2017 Couchbase Inc. 6 Visual Query Plan Shows you the simple-to-complex query execution plan in a easy to understand visual flow diagrams and additionally provide other useful information to help understand. Each explain plan displays • summary of buckets, fields, indexes used in query • visual tree of query operators After query execution, can optionally show: • time spent per operator • cost of each operator as a percentage of the total cost of the plan • number of items processed (input & output) • highlighted expensive operators
  7. 7. ©2017 Couchbase Inc. 7 Visual Query Plan
  8. 8. ©2017 Couchbase Inc. 8 Enhanced Query History Query History maintains a history of all the queries executed on the Query Workbench • easily navigate through the history windows or use arrow keys at the top of the editor to navigate • search the query history by entering a text in the search box located on the top • delete the currently selected query from the history • delete all the entire query history
  9. 9. ©2017 Couchbase Inc. 9 Query Preferences Query Preferences provides you with ability to change the run-time settings for Query Service through Run-Time Preferences window - Collect query timings - Max Parallelism - ScanConsistency - Positional Parameters - Named Parameters
  10. 10. ©2017 Couchbase Inc. 10 Query Import/Export Query Import/Export provides you with tools to • Load the saved query from a file into the Query Editor • Export the query statement in the .txt format • Export the query results in the JSON format
  11. 11. ©2017 Couchbase Inc.©2017 Couchbase Inc. 11 Query Monitoring
  12. 12. ©2017 Couchbase Inc. 12 Query Monitoring Provides current state of query service i.e. details of queries that are “active” (currently running), “completed” (recently run), or “prepared” (aggregate statistics for prepared queries) and ability to cancel/kill long-running queries. Query Monitoring displays • Active Queries - Displays all the running queries are displayed, showing the details such as the query syntax, the server IP address where the query is running, duration, request identification number, and the current state of the query. Additionally, provide ability to cancel a long running query. • Completed Queries - Displays all the completed queries, showing the similar details (all-the- above) plus it also includes result count and timestamp. • Prepared Queries - Displays aggregate statistics for prepared queries, showing the details such as the query syntax, average elapsed time, number of uses and the server IP address.
  13. 13. ©2017 Couchbase Inc. 13 Query Monitoring
  14. 14. ©2017 Couchbase Inc.©2017 Couchbase Inc. 14 Couchbase Import/Export Tools
  15. 15. ©2017 Couchbase Inc. 15 CBImport ‘cbimport' is a new tool to import data into a Couchbase cluster from different data sources. In 5.0, cbimport supports importing data from CSV file or JSON documents. • Each supported format is a sub-command of the cbimport tool • ‘cbimport csv’: Imports data into Couchbase from a CSV file • ‘cbimport json’: Imports data into Couchbase from a JSON file • ‘cbimport' tool also supports custom key-generation for each document in the imported file. Key generation is done with a combination of pre-existing fields in a document and custom generator functions supplied by cbimport. • ‘cbimport' tool supports importing JSON document of different structure • JSON object on each line, • files that contain a JSON list (that is array) where each element is a document, • and the Couchbase Samples files
  16. 16. ©2017 Couchbase Inc. 16 CBExport ‘cbexport' is a new tool to export data from a Couchbase cluster. In 5.0, cbexport supports exporting JSON data to a file. • Each supported format is a sub-command of the cbexport tool • cbexport json: Exports JSON data from Couchbase to a file • cbexport tool supports exporting JSON document of different structure • JSON object on each line, • files that contain a JSON list (that is array) where each element is a document, • Couchbase Samples files
  17. 17. ©2017 Couchbase Inc.©2017 Couchbase Inc. 17 Couchbase Web Console
  18. 18. ©2017 Couchbase Inc. 18 CouchbaseWeb Console Goals of the redefined CouchbaseWeb Console - • To maximize the usability of the existing features • Revise sitemap, visual design, and navigation • Increase UI power & flexibility. • Update frameworks; optimize UI design • Responsive design - make better use of screen real estate • Expand the feature set. • Incorporate new Spock features; better utilize current REST calls for monitoring, notification, etc
  19. 19. ©2017 Couchbase Inc. 19 CouchbaseWeb Console
  20. 20. ©2017 Couchbase Inc.©2017 Couchbase Inc. 20 DEMO !!!
  21. 21. ©2017 Couchbase Inc. 21 The CouchbaseConnect mobile app Take our in-app survey!
  22. 22. ©2017 Couchbase Inc. 22 Share your opinion on Couchbase 1. Go here: 2. Create a profile 3. Provide feedback (~15 minutes)
  23. 23. ©2017 Couchbase Inc.©2017 Couchbase Inc. Follow us on social media Twitter @couchbase Facebook /couchbase Instagram @couchbase Linkedin /company/couchbase
  24. 24. ©2017 Couchbase Inc.©2017 Couchbase Inc. ThankYou! 24