Sydney (@githudd) header
Sydney (@githudd) profile picture

Solutions Architect 👩🏻‍💻

ATX
Joined January 2022
Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)Photo by Sydney (@githudd)
Database Indexing Explained. Most databases require some form of indexing to keep up with performance benchmarks. Searching through a database is much simpler when the data is correctly indexed, which improves the system's overall performance. A database index is a lot like the index on the back of a book. It saves you time and energy by allowing you to easily find what you're looking for without having to flick through every page. Database indexes work the same way. An index is a key-value pair where the key is used to search for data instead of the corresponding indexed column(s), and the value is a pointer to the relevant row(s) in the table. To get the most out of your database, you should use the right index type for the job. The B-tree is one of the most commonly used indexing structures where keys are hierarchically sorted. When searching data, the tree is traversed down to the leaf node that contains the appropriate key and pointer to the relevant rows in the table. B-tree is most commonly used because of its efficiency in storing and searching through ordered data. Their balanced structure means that all keys can be accessed in the same number of steps, making performance consistent. Hash indexes are best used when you are searching for an exact value match. The key component of a hash index is the hash function. When searching for a specific value, the search value is passed through a hash function which returns a hash value. That hash value tells the database where the key and pointers are located in the hash table. Bitmap indexing is used for columns with few unique values. Each bitmap represents a unique value. A bitmap indicates the presence or absence of a value in a dataset, using 1’s & 0’s. For existing values, the position of the 1 in the bitmap shows the location of the row in the table. Bitmap indexes are very effective in handling complex queries where multiple columns are used. When you are indexing a table, make sure to carefully select the columns to be indexed based on the most frequently used columns in WHERE clauses. A composite index may be used when multiple columns are often used in a WHERE clause together. With a composite index, a combination of two or more columns are used to create a concatenated key. The keys are then stored based on the index strategy, such as the options mentioned above. Indexing can be a double-edged sword. It significantly speeds up queries, but it also takes up storage space and adds overhead to operations. Balancing performance & optimal storage is crucial to get the most out of your database without introducing inefficiencies.
13
393
4
1,885
248,177
Sydney retweeted
On hot & sunny days, I’m reminded that one of the best things cities can do to cool off is to plant as many trees as they can. The benefits of trees go well beyond this (like stress reduction, & cleaner air) but it’s tough to think about anything else when it’s so hot out!
6
32
2
245
18,328
Sydney retweeted
If your boss looks like this, your company will survive the recession
825
15,679
1,499
212,491
12,892,857
Something has changed.
18
34
2
379
17,986
next time you’re thinking about leaving a comment on my PR remember this is what i look like
48
89
8
1,537
133,935
For those that suck at math and hated it in school, did you ever get back to learning it on your own and was it a better experience if you did? Follow up is, was it worth it?
24
3
2
74
22,598
startup idea - instagram, but it only shows you photos from people you follow and in chronological order
243
13,034
494
163,617
6,956,330
a big part of eating salad for health is that it is hard work to eat it, like someone threw a small bag of shredded cheese into a dense forest and you gotta really work to get to it
10
42
3
577
54,524
Austin! The great @tdesseyn is hosting a meet up in town. Y'all should go. I'll meet you there! meetup.com/guidance-counselo… @layluh @CJDesiderio @githudd @sexy_gravy
7
1
18
6,015
communitytaught.org finally has a proper homepage! It's a bit sparse but better than the wall of text that was there previously 🤦‍♀️the class cards are done but need a little more time to get them sorted into complete and incomplete so they're not live yet
11
18
111
6,699
SQL Tutorial - Full Database Course for Beginners Knowing how to work with databases is fundamental for Data Science. FreeCodeCamps's 4 hours SQL tutorial will give you a solid scope of SQL. youtube.com/watch?v=HXV3zeQK…
Replying to @githudd
Get ready for a start to a long journey! I would recommend SQLBolt or SQLZoo, which have interactive exercises for you to attempt your solutions. 1. sqlbolt.com 2. sqlzoo.net
3
1
4
524
Replying to @githudd
@mayanwolfe is doing an intro to SQL stream right now on twitch!
1
1
9
880
twitter has officially removed the feature that tells you what device a tweet was sent from and i just wanna say say dorothy we will never forget you.
583
69,839
2,733
513,843
21,188,010
Tried to use the Shutterfly mobile app to design my Christmas cards. Selected the wrong photo from my camera roll so now I have 90 of these.
949
7,180
1,035
102,665
Tech instagram be like
43
71
9
1,869
Me during algos, live footage
8
5
99
I didn't keep track of the total number of jobs for this current cohort of #100Devs so far, but tonight is the last class, so I needed to add them up We're over 200 and folx really just started interviewing... Excuse me while I sit here stunned and trying not to cry
208
873
66
1,919