Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
John Sullivan
@sullivan-
hi, wow, welcome to longevity gitter!
you better mention me @sullivan- like that i guess or i will probably miss you
John Sullivan
@sullivan-
OMG work on SQLite back end is going so fast
all the model tests are passing!
John Sullivan
@sullivan-
I'm going to type a dot here every day i come here and nothing's happened
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
John Sullivan
@sullivan-
.
Mardo Del Cid
@mardo

Hey everyone!

I'm considering using the longevity framework, it looks so awesome! A couple of current concerns I have:

  • How to aggregate data? Is there native way of doing this on longevity or should I do queries directly to the db (let's say mongo) when I want to do groupBys, counts, avgs, and so on?
  • Is saving binaries (photos, docs, etc...) supported? or again, I need to talk directly to mongo's gridfs, for instance, to accomplish this?

Any help is much appreciated! :)

@sullivan- Great work so far, man!
John Sullivan
@sullivan-
Hi @mardo! I'm sorry I only got to seeing your message now. There is so little traffic here that I end up not checking in nearly often enough
Thanks for your support! Let me see if I can answer both of your questions in turn. The short answer is, both are possible and great ideas, but would take some effort to implement.
John Sullivan
@sullivan-
For aggregations, yes, you can always perform these directly against the DB. We can definitely add this as a longevity feature. It would take some work but it would be worth it. I am currently planning on doing an infrastructure refactoring, replacing a lot of home-grown reflection based code with the equivalent in shapeless. It would probably be best to hold off on implementing this feature until after this migration. With any luck, we'll get there before summer. In any event, I created a GitHub issue to track this excellent idea longevityframework/longevity#9
John Sullivan
@sullivan-
Support for binary data is another great idea. Probably a bit easier to implement than the the aggregates. Here's a ticket: longevityframework/longevity#10
I wish I could start implementing both of these today, but I've got a lot of high priority tickets on my stack right now. If you have any interest in contributing, I would happy to help you along however I could.
Mardo Del Cid
@mardo
Thanks for your valuable responses, @sullivan- ! One more question: Do you know any success stories using longevity? Any companies using it on production? This is not a show stopper for me, but still curious to know :)
John Sullivan
@sullivan-
@mardo I get so little feedback from users, it is frustrating. Makes me think it might have been better to not make my user manual so comprehensive, then at least I would get some usage questions :smile:
My suspicion is there are not many people using it in production at the moment. Schema migrations support is a fairly critical missing feature (https://www.pivotaltracker.com/story/show/108380704)
This time I got an email notification when you posted here, so next time I won't be three weeks late in responding :smile:
I wish I had a more optimistic response. Despite all the great features that longevity has, there are some good reasons I haven't hit 1.0 yet
John Sullivan
@sullivan-
The schema migrations thing is really high priority for me. But migrating the codebase to shapeless has become a sort of prereq for that, since it potentially affects the migrations implementation in significant ways
Mardo Del Cid
@mardo

Hahaha… Naaah, that user guide is killer :) it gives a good impression of the framework, that was a huge deal when I decided to look into it. I am not doing scala development in my day job so I have very little time to look into all the libraries I like :D but I love what I’ve seen so far.

Nice that you’re adding shapeless into the mix :D… It will certainly add more flexibility, less dev work and also you won’t need to maintain the inhouse reflection project (that’s “Emblem", right?).

John Sullivan
@sullivan-
That's right, emblem is sort of my attempt to use reflection to do what shapeless does, before I really understood what shapeless did
so yeah, emblem would go to trash heap
(will)
anyway real glad you like it
Mardo Del Cid
@mardo
;)
John Sullivan
@sullivan-
0.23 release coming soon!
John Sullivan
@sullivan-
Okay, 0.23 is getting real close. I'm just writing a little something up before I start working through my release steps
John Sullivan
@sullivan-
Mardo Del Cid
@mardo

Hi @sullivan- !
Thanks a lot for the demo and the video, it is awesome!

I’m facing an issue with my IDE integration. I’m currently using IntelliJ IDEA, and when looking at the companion objects (object User), there Cannot resolve symbol error for both primaryKey and props., I bet this is because the macros. Do you have a suggestion or workaround for this? Or I just got to learn to live with it? :)… not a huge deal, really; but I would prefer not see red font in my source code :D

In any case, thanks a lot!

John Sullivan
@sullivan-
Hi @mardo! Thanks for writing. I'm glad you liked the video
I don't use IDEA much, so I haven't seen that before. It's no good if IDEA is reporting errors like this. Let me look into it.
It might take a bit as I probably should install a recent version of IDEA first
Mardo Del Cid
@mardo
I remember IDEA didn’t play well with “old style” macros
I think it supports scalameta now