-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Counting query results #448
Comments
Discussed on the call, while we do recognize the need for features such as this, we would expect a Reporting API to handle query operations. |
Yeah, I'm already working on a reporting API (https://github.com/adlnet/xAPI-Dashboard), but it's all client-side Javascript, so it's less efficient than it would be LRS-side. It's good enough for now though, until some reporting standards emerge for the LRS. |
Reporting is a lot trickier than it seems. Even something as simple as a Similarly, as you've no doubt found, it's not going to make sense to do it We've got some light experimentation in generic LRS reporting going on in Sincerely, On Mon, May 12, 2014 at 6:09 AM, Steven Vergenz [email protected]:
|
Here's the thing though: one rarely has to work with the entire body of statements in the LRS. If you're querying the database and it's trying to return millions of statements, you're probably doing it wrong. My javascript statement database can run queries on 10k statements no problem, and that's probably a reasonable scope for simple analytics (for example, an average test score). I agree, accurate analytics on astronomical datasets are an unreasonable expectation. But for limited datasets it would be very helpful. To your statement @andyjohnson, reporting tools do belong in a Reporting API. But since many LRSs will probably be implementing some form of reporting anyway, a set of guidelines, or even an optional standard, would be better than nothing. |
I could definitely see a reporting spec/standard emerging - hopefully On Tue, May 13, 2014 at 9:26 AM, Steven Vergenz [email protected]:
Andy Johnson |
Hi Steven, We're already seeing single activities for some customers hitting hundreds Sure, even given that, simple result rollup over a single activity isn't I don't want to be too negative -- I'm not! #xapi reporting is a Sincerely, On Tue, May 13, 2014 at 6:26 AM, Steven Vergenz [email protected]:
|
Currently, it seems like there is no clean way to determine the number of statements a given query will return. I can make a query, then recurse over the
more
URLs to build an aggregate total, throwing away the actual statement bodies, but that seems unnecessarily bandwidth- and processing-intensive for both the client and the server.It would be great if successive versions of the xAPI included some means of obtaining this sort of aggregate data directly from the LRS database without having to resort to multiple large AJAX calls. Perhaps another query argument for the
GET /statements
API?The text was updated successfully, but these errors were encountered: