+ 1

Database in c

I tried to write a database in c using structs and writing information in txt files using fopen, fprintf etc... It says that this way is slower than SQL. Pretty slower.. How to write a database on my own that will be fast using c language?

29th Jun 2019, 10:44 AM
Lighton
Lighton - avatar
3 ответов
29th Jun 2019, 12:15 PM
Jared Bird
Jared Bird - avatar
+ 2
Look up how hash tables work. Maybe look up how file systems work (or archives), as these allow a fast way to get data from a drive.
29th Jun 2019, 12:08 PM
Jared Bird
Jared Bird - avatar
+ 1
Can you explain a little bit more please?
29th Jun 2019, 12:11 PM
Lighton
Lighton - avatar