Sydney
818 posts

Sydney أُعيد تغريده

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.

English
Sydney أُعيد تغريده
Sydney أُعيد تغريده

Thank you @developeraspire for writing this helpful article.
JavaScript Operators and Operator Precedence – Beginner's Guide
freecodecamp.org/news/javascrip…
English
Sydney أُعيد تغريده
Sydney أُعيد تغريده

@githudd I wish there were way more things for adults that we as a society arbitrarily said no more of after highschool/college unless you could do it at a competitive level. Gotta be one of my favorite things about video games
English
Sydney أُعيد تغريده

@notcapnamerica Gap effed up my credit when I was 18 because I was dumb, slightly misled and thought I was signing up for a rewards card. Credit has since recovered because it was 10 years ago but sheesh!
English

@Chau_codes Yes! I wanted to challenge the limiting beliefs I held about myself - main one being “I’m bad at math”. For about 3 years I’ve been re-learning it from the ground up and actually enjoying it so much.
English













