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.
We will go-through all the BIG ENHANCEMENTS we have made for you in Query Workbench, BRAND NEW graphical explain plan, query history and query monitoring. New tools for importing and exporting data to and from Couchbase Server Completely re-designed enterprise-grade Couchbase Web Console We will go through all of this quickly so that we have ample of time to show you COOL LIVE DEMO !!!
We can makes session interactive if you have any questions or comments or just CHEER about new enhancements please feel free to do that anytime
Query Workbench Enhancements Visual Query Plan Query History Query Preferences Query Import/Export Schema Discovery Query Monitoring Couchbase Import/Export Tools Couchbase Web Console DEMO !!!
Query Workbench was first introduced in version 4.5 last year. We have gotten great feedback from community, developers and customers. In 5.0 we have continued the momentum and made some BIG IMPORVEMENTS lets take a look !!!
Each BUBBLE in the flow signifies a event in the query execution plan. Highlighted watermark indicated EXPENSIVE OPERATION in terms of time spent, cost in percentage of the total cost of the plan and number of items. is high in one glance that way you can directly drill into problem area. As I mentioned it also provide all the relevant information such as - buckets, fields and indexes used.
Goal of the visual query plan to make the execution plan easy to understand with visual flow diagram along with also provide useful information to help understand query plans. Let me show you an example -
Next – one of the feedback we got from many hard core database N1QL developers was easy navigation across QUERY HISTORY. When you’re building a COMPLEX QUERY you tend to open many many query windows and you would want easy navigation to all the previously executed queries and too query history with search capabilities. Here it is we have QUERY HISTORY WINDOW and ARROW KEYS to navigate across history. You can search queries delete them and clear history.
You can now set the RUNTIME QUERY SETTINGS such-as MAX PARALLELISM, SCAN CONSISTENCY, POSITIONAL & NAMES parameters all from the QUERY PREFERENCE WINDOW whereas in the past you would have to goto CBQ (COMMAND-LINE SHELL) to change those settings.
Also you can now save the QUERY to your filesystem and load query into Query Workbench. If you want to save the result you can do that in JSON format.
When dealing with QUERY WORKLOAD IN A PRODUCTION SYSTEM OR TESTING QUERY WORKLOAD what you need is a powerful QUERY MONITORING AND PROFILING which gives a SNAPSHOT of the QUERY SERVICE
Goal of query monitoring is to provide 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 queries.
Let me show you an example -
On the TOP RIGHT CORNER you’ll see three tabs – ACTIVE, COMPLETED & PREPARED
On each WINDOW you get - ACTUAL FULL QUERY QUERY NODE WHERE IT IS GETTING EXECUTED OR COMPLETED DURATION NUMBER OF RESULT COUNT WHAT STATE START TIME AND USER WHO’S EXECUTING IT
You will also see EDIT button to CANCEL OR KILL QUERY
Productivity tools: new 5.0 features, N1QL queries, and more – Connect Silicon Valley 2017