Monday, April 30, 2018

How Do I Get the Attribute of My Object Type in SQL?

DZone Database Zone
How Do I Get the Attribute of My Object Type in SQL?
How Do I Get the Attribute of My Object Type in SQL?

This question found its way into my inbox yesterday:

I have a table with an object type column. I want to way to get the value of an attribute of that object type in my query. But Oracle keeps telling me "ORA-00904: invalid identifier". What am I doing wrong?

Almost certainly what you are doing wrong is forgetting to use a table alias. Yeah, it's that simple.

Sunday, April 29, 2018

7 Reasons Why Open-Source Elassandra (Cassandra + Elasticsearch) Is Worth a Look

DZone Database Zone
7 Reasons Why Open-Source Elassandra (Cassandra + Elasticsearch) Is Worth a Look
7 Reasons Why Open-Source Elassandra (Cassandra + Elasticsearch) Is Worth a Look

For organizations that rely on the Cassandra NoSQL database but require more efficient search capabilities, Elassandra offers a compelling open-source solution. Elassandra combines the powers of Elasticsearch and Cassandra by utilizing Elasticsearch as a Cassandra secondary index. While companies may use both Elasticsearch and Cassandra on their own (and unite them by developing their own custom integration or synchronization code), Elassandra negates the challenges of implementing these measures and managing that software separately.

By closely integrating Elasticsearch with Cassandra, Elassandra provides search latencies that approach real-time responsiveness. Better yet, it achieves this while also delivering access to all the advantages of Elasticsearch’s established ecosystem of REST APIs, plugins, and other solutions. Through these tools — such as the powerful Kibana UI that allows users to search, analyze, and visualize data quickly and easily — database ops can be carried out with much more efficiency than is possible using Cassandra and Elasticsearch independently.

Saturday, April 28, 2018

Segment on EC2/ECS Operations Magic with Step Functions

Data Videos
#Data -Segment on EC2/ECS Operations Magic with Step Functions

Approaches to Masking Email Addresses

DZone Database Zone
Approaches to Masking Email Addresses
Approaches to Masking Email Addresses

A recent Data Governance Survey conducted by Redgate of over 500 SQL Server professionals showed that 61% of respondents were using production data for non-production workflows; a process that is often seen as necessary for the reliability of development, testing, and other similar workflows. However, with data privacy legislation such as the GDPR, POPI, and HIPAA, we can often be prevented from utilizing this data unless we are able to anonymize/pseudonymize or mask it first.

When masking these sets of data, we are often required to mask a variety of data-types from names to credit card numbers and, unsurprisingly, email addresses. Ultimately, data copied into pre-production workflows should never compromise the security of data subjects stored in production; the most obvious blunder to avoid being never accidentally sending an email to all your contacts that exist in Test.

Friday, April 27, 2018

Error Logging in MySQL 8

DZone Database Zone
Error Logging in MySQL 8
Error Logging in MySQL 8

Although only available as a release candidate, MySQL 8 is already proving to be a huge leap forward in many regards. Error logging is no exception. The MySQL development team just announced that they have redesigned the error logging subsystem to use a new component architecture.

The redesign will allow the filtering of log events, as well as the routing of error log output to multiple destinations via the enabling of multiple sink components. This will make it possible to send error log events to third-party systems for additional formatting and analysis.

Build a .NET Chatbot | Build a Session Extension & Use Option Pattern

Data Videos
#Data -Build a .NET Chatbot | Build a Session Extension & Use Option Pattern

Thursday, April 26, 2018

Using Cloud Functions for Automated, Regular Cloud Database Jobs

DZone Database Zone
Using Cloud Functions for Automated, Regular Cloud Database Jobs
Using Cloud Functions for Automated, Regular Cloud Database Jobs

Some days ago, I blogged about a tutorial I wrote. The tutorial discusses how to combine serverless and Cloud Foundry for data retrieval and analytics. That scenario came up when I looked into regularly downloading GitHub traffic statistics for improved usage insights. What I needed was a mechanism to execute a small Python script on a daily or weekly basis. After looking into some possible solutions, IBM Cloud Functions was the clear winner. In this article, I am going to discuss how simple it is to implement some regular, automated activities, such as maintenance jobs for a cloud database.

Code Your Action

The action is the part that is executed. IBM Cloud Functions supports several programming languages for coding an action. JavaScript, Swift, Python, and some others can be used, or even a Docker image provided. In my case, I implemented a Python action to fetch the GitHub account information and the list of repositories from Db2, then to retrieve the traffic data from GitHub and, last, to merge it in Db2. The code for that particular action can be found in this file on GitHub.

Power BI Lingo, RegEx, Data and BI Summit and more... (April 26, 2018)

Data Videos
#Data -Power BI Lingo, RegEx, Data and BI Summit and more... (April 26, 2018)

Wednesday, April 25, 2018

Improve Enterprise Productivity with Secure Digital Workspaces

Data Videos
#Data -Improve Enterprise Productivity with Secure Digital Workspaces

Testing GraphQL Server in Node.js

DZone Database Zone
Testing GraphQL Server in Node.js
Testing GraphQL Server in Node.js

When we started using GraphQL in our Node.js project, we had a struggle with writing tests. We read numerous blogs, searching for the best way. Unfortunately, there didn't seem to be one, so we made one ourselves. Here, we'll share our way of testing GraphQL queries.

First, we will set up everything needed for running tests:

Tuesday, April 24, 2018

Launching Applications the Amazon Way

Data Videos
#Data -Launching Applications the Amazon Way

Hazelcast Jet Tutorial: Building Custom JDBC Sinks

DZone Database Zone
Hazelcast Jet Tutorial: Building Custom JDBC Sinks
Hazelcast Jet Tutorial: Building Custom JDBC Sinks

Hazelcast Jet supports writing into a number of third-party systems, including HDFS, Apache Kafka, and others. But what if you want to write into your own system that is not supported by Jet out-of-the-box? Starting with the version 0.6, Jet offers a new simple-to-use API for building custom Sinks and this tutorial will show you how to use it!

In this tutorial, we are going to build a JDBC sink writing Stock updates to a relational database, but you can apply the same principles for building an arbitrary sink.

Keynote - The One Metric That Matters (and Other Things You Should Know About Building Startups)

Data Videos
#Data -Keynote - The One Metric That Matters (and Other Things You Should Know About Building Startups)

Database Handling in Cucumber and Creating Intuitive Reports

DZone Database Zone
Database Handling in Cucumber and Creating Intuitive Reports
Database Handling in Cucumber and Creating Intuitive Reports

Cucumber is a testing framework that supports behavior-driven development (BDD). It enables us to define the application requirements/behavior in simple English steps. It uses plain meaningful English text using simple grammar defined by a language called Gherkin. Gherkin is a domain-specific, business-readable language, using which we can describe the application’s behavior without defining the details of how behavior is implemented. Gherkin language serves two main purposes: documentation and automated tests.

Ruby is an open-source, dynamic programming language. It has a simple syntax and it’s also known as the layman’s programming language. Cucumber, the tool itself is written in Ruby language, and it can be used to test code written in any languages including Ruby. Tests written in Cucumber interacts directly with the development code, the tests are written in simple language that is easy to understand by all business stakeholders. The file where the entire application behavior is written in simple English-Gherkin mix is called as “Feature file”

Monday, April 23, 2018

Restore a MongoDB Logical Backup

DZone Database Zone
Restore a MongoDB Logical Backup
Restore a MongoDB Logical Backup

MongoDB logical backup requires the use of the mongorestore tool to perform the restore backup. This article focuses on this tool and process.

Note: Percona develops a backup tool named Percona-Lab/mongodb-consistent-backup, which is a wrapper for mongodump, adding cluster-wide backup consistency. The backups created by mongodb_consistent_backup (in Dump/Mongodump mode) can be restored using the exact same steps as a regular mongodump backup — no special steps!

Fun With SQL: Functions in Postgres

DZone Database Zone Fun With SQL: Functions in Postgres In our previous  Fun with SQL  post on the  Citus Data  blog, we covered w...