HNHacker News
TopNewBestAskShowJobs

akane

701 karma · joined July 26, 2010

https://github.com/ankane
submissionscomments
akane··on Find anything fast with Google's vector search technology
Check out pgvector: https://github.com/ankane/pgvector (disclosure: am author)

It uses IVFFlat indexing, but could be extended to support product quantization / ScaNN.

akane··on Show HN: A key-value store built with homomorphic encryption
Homomorphic encryption reveals less information to the server about the query than if you were to encrypt keys (with deterministic encryption) and values. It hides the fact that the same query was run multiple times and which key (if any) was matched.
akane··on Show HN: A key-value store built with homomorphic encryption
I mainly thought it was neat there's a way to do matching on encrypted data without deterministic encryption. It's based on this example - https://github.com/homenc/HElib/tree/master/examples/BGV_cou... - which explains more about how it works and why it's O(N).
akane··on Why access and API tokens are the new passwords but worse
The post doesn't say you should give out your login. It says you should encrypt your access tokens and explains some security implications of current implementations that use them, like how they often give too broad permissions. When you change your password, you often need to reauth all of your devices, but you don't need to reauth your access tokens.
akane··on The Waiting Time Paradox, Or, Why Is My Bus Always Late?
On a related note, arrival time predictions can be biased early to prevent people from missing buses, which also increases the perception of lateness.

https://nextbus.cubic.com/FAQs

akane··on 120M American Households Exposed In 'Massive' ConsumerView Database Leak
On a related note, here's an open-source project I created that you can use to check your own S3 buckets: https://github.com/ankane/s3tk
akane··on Show HN: Create beautiful charts with one line of React
Thanks for the feedback. I created a better landing page here: https://www.chartkick.com/react
akane··on Show HN: Create beautiful charts with one line of React
Thanks nk1tz. Done!
akane··on Show HN: Create beautiful charts with one line of React
Thanks for the feedback!
akane··on Pgslice: Postgres partitioning as easy as pie
Update: Hey ak4g, the latest version of pgslice uses this approach. We're seeing roughly 20% less load on inserts with it (in the short time it's been in production). Thanks for the suggestion!
akane··on Pgslice: Postgres partitioning as easy as pie
That's correct. It allows us to manage the database size over time for tables where we can archive data after a specific period.
akane··on Pgslice: Postgres partitioning as easy as pie
Is this the latest work? https://www.postgresql.org/message-id/ad16e2f5-fc7c-cc2d-333...
akane··on Pgslice: Postgres partitioning as easy as pie
We didn't really find anything that fit our needs. We wanted a tool that was simple to use with the ability to do time-based partitioning of existing production tables without downtime.
akane··on Pgslice: Postgres partitioning as easy as pie
We currently use Amazon RDS, which doesn't support custom extensions, so pg_partman wasn’t an option for us. I haven't used pg_partman myself, but it looks to have different features.

I think an external tool is a bit friendlier for people who aren't super comfortable with installing Postgres extensions. Also, it doesn't require a restart.

I'm optimistic that Postgres will make all of this trivial at some point.

Edit: changed "more features" to "different features". One of the main goals is the ability to partition existing production tables without downtime, which seems different than pg_partman.

akane··on Pgslice: Postgres partitioning as easy as pie
We've been using the tool for around 5 months, but the same approach/triggers for over a year. I wasn't aware the IF/ELSIF trigger approach had potential advantages over EXECUTE, but will definitely look into it.
akane··on Pgslice: Postgres partitioning as easy as pie
Yes, we do at Instacart.
akane··on A Formula for Bayesian A/B Testing
Assuming the Julia implementation is correct, you could write tests based on output from that.
akane··on Show HN: Visit tracking for Rails
Currently, a visit record is created as soon as a user lands on a page with the Javascript, but I'm curious to see other ways people want to it.
akane··on Show HN: Visit tracking for Rails
Unless you have hundreds of unique visitors per second, this shouldn't be a problem.
akane··on Instacart launches Searchkick - Bootstrap for Search
It's been on Github for a bit, but this is the first big release.
akane··on Instacart launches Searchkick - Bootstrap for Search
Training searches from conversions (self-improving searches) is kinda interesting. Elasticsearch is an amazing product but it can be hard to configure, especially for beginners.

Edit: spelling

akane··on Instacart launches Searchkick - Bootstrap for Search
We looked into PostgreSQL search for a bit, but didn't see a way to train search results from past conversions. Does anyone know if this is possible?
akane··on Instacart launches Searchkick - Bootstrap for Search
That's exactly why we open-sourced Searchkick :)
akane··on Instacart launches Searchkick - Bootstrap for Search
We're indexing around 100k documents. What line are you referring to, and what's bad about it?
akane··on Show HN: Better SQL group by date
Awesome, added this to the todo list.
akane··on Show HN: Better SQL group by date
I would suggest denormalizing only after you find a performance bottleneck. As they say, "premature optimization is the root of all evil".
akane··on Show HN: Better SQL group by date
Good suggestion!
akane··on Show HN: Better SQL group by date
Just a pull request away :)
akane··on Show HN: Better SQL group by date
You can always `curl`, then `cat | sh` if you don't trust me :)
akane··on Show HN: Better SQL group by date
For those concerned about a SQL dependency, it might be useful to create projects in different languages that package these functions. These methods were extracted from https://github.com/ankane/groupdate, which you can use for Ruby + ActiveRecord

(edit: spelling)

Page 1 of 3Next →