filmov
tv
I tried advanced search features of Redis in Python and here is what happened
Показать описание
I was curious to see if Redis is capable of supporting advanced queries like we do in SQL databases such as aggregations, where clause, etc. It did not disappoint. In this video, I'll go over 10 different queries and show you how you can use it in your own Redis project. I'm using the Redis OM Python SDK, Redis Insight GUI tool, the RediSearch module and Python to perform these queries.
Redis OM SDK (Python)
Redis Insight Desktop GUI
Redis Cloud (Sign up and get $200 credit, plus a chance to win a Telsa)
Redis Launchpad (Contains 100s of Redis examples)
Developer Hub (Start here)
📚📚About
In this dense tutorial, I explain how to use advanced redisearch querying functionalities using python for full text searching, indexing, querying, tag searches, geo localization, aggregation, grouping, filtering and much more. The tutorial also shows you how to connect to redis cloud as well as localhost. The code is oriented towards an employee management backend - but is pretty generic in a sense that you could re-use the code for your beautiful app that you're trying to develop and sell.
⏲⏲Outline
00:00 Introduction
00:49 Redis Cloud Registration + Tesla giveaway participation
01:24 Preparing our localhost
02:08 Docker Container
04:32 venv configuration for virtual environment
07:07 RedisInsight Configuration (optional)
08:07 Database employee records
09:05 Employee HashModel
10:38 Employee JSONModel
12:03 Upload Employees (localhost way)
14:31 Upload to Redis Cloud (redis cloud way)
16:12 SEARCH BY first name
18:35 RediSearch Client
23:48 Wildcard searches
25:06 SEARCH by first name and last name
25:52 SORT BY Salary (Ascending)
26:53 SORT BY Salary (Descending)
27:38 Aggregate reducers
28:37 Aggregate alias
30:04 Aggregate limit
30:49 GROUP BY department
32:21 GROUP BY department only those who are admins
33:51 GROUP BY salary
35:12 Count number of employees w/ salary greater than 75K USD
37:48 SEARCH BY tags ( single tag )
41:09 SEARCH BY tags ( multiple tags )
42:05 SEARCH BY GEOLOCATION
45:10 Outro
📚📚 MY FREE ONLINE COURSES:
CREDITS x MENTIONS:
📚📚 OTHER RECOMMENDED COURSES
BE MY FRIEND:
WHO AM I:
GET IN TOUCH:
I try my best to respond to each and every comment here on YouTube, you guys are my family ❤️
#database #tutorial #programming
Комментарии