News for hackers. Stuff that matters.
Re:Show HN: Heap is a new approach to analytics. Just captur... by DodgyEggplant on Friday March 22, 2013 @01:51PM (#5424440)
Poor man's analytics: events, client side, server side, whatever. Set up a separate DB with one big table, many columns for properties. One server call to write an event (a row), one ajax call to write from the client, throw it wherever you need. A bit of good old simple SQL for queries and reporting, and you are done.
Re:Show HN: Heap is a new approach to analytics. Just captur... by pc86 on Friday March 22, 2013 @02:35PM (#5424714)
I've often wondered about the efficacy of having a simple catch-all script that just tracks everything a user does on the site. I would think it would pound the database relentlessly under even modest load.
Re:Show HN: Heap is a new approach to analytics. Just captur... by darkxanthos on Friday March 22, 2013 @07:51PM (#5426537)
One trick is to not use a database but a flat text file. You can optimize for querying nightly.
Re:Show HN: Heap is a new approach to analytics. Just captur... by ukoki on Saturday March 23, 2013 @02:54AM (#5427514)
AWS comes into its own for these kinds of use cases - make a lightweight autoscaling events API on Elastic Beanstalk pumping events into DynamoDB coupled with a bunch of workers running at the EC2 spot price sorting and processing these into a traditional RDBMS = massively horizontally scalable events handling for pennies an hour.
Re:Show HN: Heap is a new approach to analytics. Just captur... by mcos on Friday March 22, 2013 @02:47PM (#5424798)
You could read all the responses into a Queue-type structure and then populate the database in the background.
Re:Show HN: Heap is a new approach to analytics. Just captur... by stevoyoung on Friday March 22, 2013 @05:08PM (#5425784)
Clickish can do this with GA is you wanted. It's also intelligent with how it routes request back to GA. http://www.clickish.org
Re:Show HN: Heap is a new approach to analytics. Just captur... by msoad on Friday March 22, 2013 @03:05PM (#5424930)
Then you have a lot of form data including passwords in your poor-manDB
Re:Show HN: Heap is a new approach to analytics. Just captur... by eksith on Friday March 22, 2013 @03:35PM (#5425112)
That's why he said "Set up a separate DB with one big table" ;)

I think it can actually work quite well, provided you can setup a separate service just for analytics. It's not too unreasonable to assume there are sites already doing this since the concept of a central repository that you alone control (and isn't provided by a third party) can be appealing.

Also, you have to worry less about privacy and just concentrate on keeping your own systems and services secure.

Re:Show HN: Heap is a new approach to analytics. Just captur... by pvnick on Friday March 22, 2013 @02:56PM (#5424855)
Or a table with two columns, Key and Value. Index by key. Specify keys in code with constants. No need to alter table when adding new metrics.
Re:Show HN: Heap is a new approach to analytics. Just captur... by bcoates on Friday March 22, 2013 @03:51PM (#5425224)
Please don't do this! Entity-Attribute-Value tables are a nightmare waiting to happen about 98% of the time.

If there's something wrong with your DBMS where the alter table to add a row is an expensive or dangerous operation, just add a new table for every attribute, having lots of tables in a database is no worse than having lots of variables in a program.

If your DBA gets angry at you for adding new tables all the time, get a new DBA.

Re:Show HN: Heap is a new approach to analytics. Just captur... by dustin on Friday March 22, 2013 @03:35PM (#5425104)
This!
Re:Show HN: Heap is a new approach to analytics. Just captur... by pindi on Friday March 22, 2013 @05:42PM (#5425983)
I have a system exactly like this at my company, with a prettier UI on top of the SQL querying. I've been considering open sourcing it for a while; I wonder if there really is a demand for this, or if it's one of those things that everyone prefers to roll themselves.
Re:Show HN: Heap is a new approach to analytics. Just captur... by sachinag on Friday March 22, 2013 @06:14PM (#5426119)
Nothing wrong with putting it out there and no uptake. At least you won't have pull requests to deal with.

But, seriously, everyone rolls this themselves and does it wrong. If you've done it right, and can release it, you'd be doing good for the world.

Re:Show HN: Heap is a new approach to analytics. Just captur... by fellowniusmonk on Saturday March 23, 2013 @01:55AM (#5427414)
Very interested.
Re:Show HN: Heap is a new approach to analytics. Just captur... by tlarkworthy on Friday March 22, 2013 @03:39PM (#5425144)
yeah or I could just pay them $25 / month and let them pay for bandwidth on their own server time
Re:Show HN: Heap is a new approach to analytics. Just captur... by DodgyEggplant on Friday March 22, 2013 @04:03PM (#5425299)
you still have the issue of another party domain and all the blockers