Paging in MongoDB – How to actually avoid poor performance ?

What is the best way (performance wise) to paginate results in MongoDB ? Especially when you also want to get the total number of results ? Project running with .NET Core 2.0 Where to start ? For answering to these questions, let’s start from the datasets defined in my earlier article How to search good places to travel (MongoDb LINQ & .NET Core). That article was quick introduction, on how to load big chunks of data and then retrieve values

Continue Reading

How to search good places to travel (MongoDb LINQ & .NET Core)

Let’s build a simple WebApi with .NET Core and MongoDb to query the details of different destinations around the globe. We’ll do the search with MongoDb LINQ, running different scenarios. For a brief introduction on how to build and test a full .NET CORE WebApi with MongoDB please check my earlier article: Using MongoDB .NET Driver with .NET Core WebAPI. You could find the project on GitHub: github.com/fpetru/WebApiQueryMongoDb Within this article I will use two datasets: Wikivoyage provides more details

Continue Reading

Using MongoDB .NET Driver with .NET Core WebAPI

What’s about Problem / solution format brings an easier understanding on how to build things, giving an immediate feedback. Starting from this idea, the blog post I will present step by step how to build a web application to store your ideas in an easy way, adding text notes, either from desktop or mobile, with few characteristics: run fast, save on the fly whatever you write, and be reasonably reliable and secure. This article will implement just the backend, WebApi

Continue Reading

Using MongoDB .NET Driver with ASP.NET Core MVC

Before starting This is a conversion of the original article Using MongoDB .NET Driver with .NET Core WebAPI to ASP.NET MVC. My intention would be to not repeat any of the points discussed there, and rather focus on how to have an ASP.NET Web App running. To install Here are all the things needed to be installed: Visual Studio Community 2015 and then Visual Studio 2015 Update 3 and .NET Core 1.0.1 – VS 2015 Tooling Preview 2 MongoDB and

Continue Reading

Site Footer