listenbrainz-server/listens-experiment f78b817 Roman Tsukanov: Merge branch 'master' into listens-experiment
2015-09-16 25935, 2015
github has left the channel
2015-09-16 25933, 2015
ariscop_ joined the channel
2015-09-16 25935, 2015
ariscop has quit
2015-09-16 25935, 2015
ariscop_ has quit
2015-09-16 25939, 2015
github joined the channel
2015-09-16 25939, 2015
github
[listenbrainz-server] gentlecat opened pull request #16: [WIP] Remember current page (timestamp) when switching between pages (master...listens-experiment) https://github.com/metabrainz/listenbrainz-server…
i think i've had this issue with chef attribute ordering before
2015-09-16 25914, 2015
RJ2
doing a converge to a fresh vm now to test
2015-09-16 25945, 2015
alastairp
kepstin: you're lucky you're logged into lastfm developer site. Those who aren't can't...
2015-09-16 25956, 2015
alastairp
I recommend that you never sign out
2015-09-16 25944, 2015
ruaok
RJ2: thanks
2015-09-16 25908, 2015
russss joined the channel
2015-09-16 25956, 2015
_5moufl joined the channel
2015-09-16 25936, 2015
ruaok
russss, RJ2: quick question about cassandra stuffs.
2015-09-16 25945, 2015
RJ2
sure
2015-09-16 25956, 2015
ruaok
we think it will be useful to store a boolean in the DB if a listen has been imported or if it is a new one.
2015-09-16 25911, 2015
ruaok
the idea is to query for the last imported scrobble from last.fm.
2015-09-16 25922, 2015
ruaok
so that we can do incremental imports.
2015-09-16 25937, 2015
ruaok
and only so the massive import of a whole history once.
2015-09-16 25957, 2015
RJ2
fetching the most recent listen from cassandra would be pretty cheap, that would give you the last date?
2015-09-16 25958, 2015
ruaok
so, if we add this boolean to the cassandra listens table, will be we able to find it easily?
2015-09-16 25912, 2015
ruaok
not always.
2015-09-16 25915, 2015
RJ2
oh sorry i see what you mean
2015-09-16 25929, 2015
ruaok
i fear that this is not a proper usage of cassandra, no?
2015-09-16 25932, 2015
RJ2
so you'd never have to update that field, just for scrobble provenance
2015-09-16 25941, 2015
ruaok
correct.
2015-09-16 25944, 2015
RJ2
yeah that's not a good use of cassandra really
2015-09-16 25904, 2015
ruaok
ok, I was thinking that might be the case.
2015-09-16 25911, 2015
russss
just have a "last imported scrobble" table, userid->timestamp mapping
2015-09-16 25925, 2015
RJ2
yup
2015-09-16 25931, 2015
russss
that saves storing a boolean for every row as well
2015-09-16 25931, 2015
ruaok
in cassandra, or in postgres?
2015-09-16 25934, 2015
ruaok
or redis?
2015-09-16 25947, 2015
RJ2
pg or cass really
2015-09-16 25958, 2015
RJ2
maybe cass so the python inserter can update that table as needed
2015-09-16 25921, 2015
RJ2
look at a "from_lastfm" field in the scrobble json, and have the python issue an insert to the last_imported_scrobble table
2015-09-16 25927, 2015
ruaok
and really it would only have one row per user, right?
2015-09-16 25941, 2015
RJ2
row key would be uid yeah, and only column would be the timestamp
2015-09-16 25952, 2015
ruaok
ok, got it.
2015-09-16 25912, 2015
ruaok
alastairp and I are presenting listenbrainz at the Future Music Forum tomorrow.
2015-09-16 25916, 2015
RJ2
show me the cql for if you want a sanity check
2015-09-16 25921, 2015
RJ2
ah cool
2015-09-16 25925, 2015
ruaok
I'm wondering what things need to be settled before we do that.
2015-09-16 25938, 2015
ruaok
but this sounds like a bit of a task to try and sneak in today.
2015-09-16 25957, 2015
ruaok
this doesn't sound terrible to add after the fact, no?
2015-09-16 25918, 2015
ruaok
where after the fact is once people have stared importing their listen histories.
2015-09-16 25929, 2015
RJ2
yeah seems fine. will be a small table
2015-09-16 25930, 2015
alastairp
we just need to hope that no one goes away tomorrow night and implements listenbrainz listening in their pet music player
2015-09-16 25942, 2015
alastairp
and starts sending non-lastfm sourced data
2015-09-16 25902, 2015
RJ2
would be lots of updates if you insert imported scrobbles one at a time. might be best to just do the update timestamp thing on the last imported lastfm scrobble in the batch as an optimisation
2015-09-16 25903, 2015
ruaok points to http://listenbrainz.org/contribute
2015-09-16 25909, 2015
ruaok
see boldface. :)
2015-09-16 25934, 2015
demonimin joined the channel
2015-09-16 25934, 2015
ruaok
RJ2: makes sense.
2015-09-16 25909, 2015
Freso
Eep. I missed a typo earlier! D:
2015-09-16 25914, 2015
Freso prepares a new PR
2015-09-16 25955, 2015
alastairp
we have 2 more questions for everyone -
2015-09-16 25904, 2015
alastairp
1) what colour should we paint the bike shed?
2015-09-16 25922, 2015
alastairp
2) should we have a versioned namespace for api queries?