Whaleshares Logo

WHALESHARES.NL - active but crippled

ijmmaiwitnessPosted for Friends to comment on, 4 years ago2 min read

image.png

Those who use the whaleshares.nl website for getting all sorts of data on the platform in general or on specific user accounts will have noticed the "We'll be back soon" message that was displayed on the website for a few days.

Errors

For some reason the queries for data from the fullnode returned invalid (cut off) JSON strings. This resulted in the scripts not being able to decode the information, which resulted in ... no data to display.

Workaround

Since no changes were made to the code, nor to the servers, I have not found the real cause and for now have a workaround in place, instead of solved the issue, to at least display something.

Where information was queried in batches of 500 before, I now reduced them to 60-90 (for some reason what worked for one script didn't work for the other). This means there are more queries needed to collect the data, this slows things down.

When you want to use the site, pour yourself a cup of coffee, maybe even start a Netflix movie, and be patient. Not sure how long this workaround will hold.

Solution

I have been postponing it, but I guess it is time to start using a local database instead of querying all data from the blockchain directly. This will speed things up, some calculations now done by code, will be done by the database system while querying for information.

It will take some time to set it up. Stay tuned!


Use your witness votes wisely

Jump over to the Block Producer / Witness page and cast your witness votes. Simply click on the (^) up arrow next to the witness names of your choice (consider voting for "krazywitness" and "ijmmaiwitness") and supply your private active key to lock in your vote. Refresh the page in case your vote doesn't seem to stick.


Image is a screenshot of my own system

Sign Up to join this conversation, or to start a topic of your own.
Your opinion is celebrated and welcomed, not banned or censored!