News for hackers. Stuff that matters.
Re:Building apps in minutes, not months by mdoms on Friday September 17, 2021 @08:29PM (#28572408)
You indexed hundreds of millions of records in under an hour? Doubt.
Re:Building apps in minutes, not months by lmilcin on Friday September 17, 2021 @08:32PM (#28572422)
I have obviously not indexed the records. I just made an application that would index new and modified records and indexing existing ones would have to be performed separately.

Also you need to realize it wouldn't be very wise to run your just written code directly on prod.

Re:Building apps in minutes, not months by orhmeh09 on Friday September 17, 2021 @08:53PM (#28572572)
I could believe it — I’m pretty sure I’ve done it before using Postgres. Benchmarks appear to confirm this possibility —- 100 million towns indexed in about 35 mins using the standard b tree index, and 20 mins for BRIN on a laptop in 2019: https://blog.crunchydata.com/blog/postgresql-brin-indexes-bi...
Re:Building apps in minutes, not months by lmilcin on Friday September 17, 2021 @09:13PM (#28572682)
Elasticsearch is famous for slow indexing. This is basically because it is trading off slow indexing for fast search later.

And data to be indexed was incredibly complex and rich. So every detail of every car you own, family member information, addresses, phone numbers, emails, identification documents, details of your contracts, and so on.

Re:Building apps in minutes, not months by orhmeh09 on Saturday September 18, 2021 @02:13AM (#28574119)
Neat! I’ve never used Elastic but might have a use for it un the near future. Do you recommend any resources?
Re:Building apps in minutes, not months by Andys on Saturday September 18, 2021 @05:54AM (#28574962)
If you insert in batches, elastic is quite fast. Also it shards and scales horizontally really well without the client having to know that.

My cluster of 6 instances could index ~20k large, complex docs per second while still serving production query traffic.