This is a very interesting idea that afaik hasn't been discussed before. I think it's a great idea. At the lowest level, rows are created in coder.rb in read_values_v4. I'd start there with adding some kind of hook and working outwards.
Good luck, and let me know if you run into issues.
-Sandeep
On Wednesday, September 13, 2017 at 8:38:02 AM UTC-7, Evan Prothro wrote:
I wanted to see what discussion has been (if any) over the years regarding adding the ability for cassandra-driver to delegate row object instantiation and attribute assignment in a user-defined way.
The user benefit would be a performant way to receive model objects back from the driver -- avoiding the middle-man Hash object when the pattern of using the hash as a data object doesn't satisfy the needs of the client.
For a visualization, here is a rough sequence diagram, showing the wasted iteration in this use case.
I'm addressing a few issues in our code base around this concept and wanted to gauge y'alls opinion / temperature on this as I proceeded.
Cheers,
Evan Prothro
You received this message because you are subscribed to a topic in the Google Groups "DataStax Ruby Driver for Apache Cassandra User Mailing List" group.
.