How to Use Redisson a Redis Java Client Library on Java

Introduction Redis is an open source, data-structure store that can be used as a caching layer, database or messaging agent. Redis can resolve complex programming issues and reduce latency and coding time. Java is a programming language typically used to create application modules for web pages. This tutorial will cover how to use the Redis … Continued

How to Connect Redis on Java using Jedis

Introduction This tutorial will demonstrate how to connect Redis to Java with the Jedis client library for Java using Maven in Eclipse. Redis is an open-source data store that is used as a cache and database with builtin replication that supports data structures such as bitmaps, indexes, lists, sets, sorted sets and strings. Java is … Continued

How to Save an Image in MongoDB using Java

Introduction MongoDB is widely used to store and manage text data, but its capabilities extend far beyond just text. If you’ve been wondering how to save an image in MongoDB, look no further– it’s actually quite easy to store images and other binary data to MongoDB. In this tutorial, we’ll explain how to use the … Continued

How to Add Fields in a MongoDB Array using Java

Introduction When you’re working with data in MongoDB, it’s likely that you’ll have to add a new field to a document at some point. Fortunately, adding fields in a MongoDB array is a simple task that can be accomplished in just a few lines of code. In this step-by-step tutorial, we’ll show you how to … Continued

Working with MongoDB Capped Collections from Java

Introduction In MongoDB, there’s normally no limit on the size of a collection. The more documents you index, the larger the collection grows. However, for log storage or high-throughput applications, an unlimited-size collection isn’t always an ideal structure. In these cases, it’s often preferable to use a different type of collection called a capped collection. … Continued

How to Perform Indexing in MongoDB using Java

Introduction If you want MongoDB to process queries as efficiently as possible, it’s important to make good use of indexes. Indexes support the efficient execution of queries. They help MongoDB limit the number of documents it must inspect to complete a query. Without the help of indexes, MongoDB would have to scan each and every … Continued

How to Limit Delete to a MongoDB Collection using Java

Introduction If you’re working with data in MongoDB, there will be times when you need to delete documents, but you want to limit that deletion to documents that meet specific criteria. Deleting documents is a permanent operation, so you need to make sure you know how to proceed. Fortunately, it’s easy to accomplish a limited … Continued

How to Use MongoDB Comparison Query Operators in Java

Introduction When you query a database, there are times when you need to use comparison operators to express the conditions of the query. You might want a list of all students whose age is greater than 16, or you might want the database to return all cars where the model year equals 2019. Queries like … Continued

How to Use the LIKE Query in MongoDB using Java

Introduction When you’re querying a database, there are times when you need answers to questions that can’t be accomplished with typical operators. Perhaps you have a collection of student records, and you want to query for all names that start with “R”– you can’t rely on a traditional exact-matching query to do the job. In … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.