▲ | mirkodrummer 6 days ago | ||||||||||||||||
You actually confirmed that rails is slow if the optimization is on the database server and doing data mangling in ruby is less efficient | |||||||||||||||||
▲ | runako 6 days ago | parent | next [-] | ||||||||||||||||
Constructively, I would suggest some areas for study: - relative speeds of programming languages (https://github.com/niklas-heer/speed-comparison) - database indexing (https://stackoverflow.com/questions/1108/how-does-database-i...) - numbers everyone should know (https://news.ycombinator.com/item?id=39658138) And note that databases are generally written in C. | |||||||||||||||||
| |||||||||||||||||
▲ | closeparen 6 days ago | parent | prev | next [-] | ||||||||||||||||
Unless the database is in your process's address space (SQLite, Datomic, etc) your first problem is going to be shipping the data from the database server to the application process. | |||||||||||||||||
▲ | richwater 6 days ago | parent | prev [-] | ||||||||||||||||
You've correctly identified that filtering a list is slower than looking up from an index. Congratulations. | |||||||||||||||||
|