Should I save Wikipedia data to my database? [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am developing a website which needs Wikipedia data to show on pages. For instance I need a profile page for Barack Obama and I want to get picture of Obama and a short description about who he is.
Anyway, my question is: should I save the wiki data to my database to use in the next page views of Obama or should I always get the data from wiki? There are going to be many pages like this and I want my website to run smoothly in terms of performance, like page rendering latency or sth.
What is the appropriate approach?

Yes, caching the data, or at least the API requests, at your local webserver will both improve performance and latency.
Hotlinking images is allowed, but if it gets massive you should consider hosting the most images yourself. Make sure to respect the API etiquette, and be familar with the Wikimedia ToS.

Related

Is it a good idea to store website images on good drive and link to it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm developing a website that uses a lot of images and was thinking of storing those images on Google Drive using the Drive API whenever an image is uploaded. Do you think this is a good idea and will it affect the performance in any way?
PS. After uploading to Drive from the backend, I will store a link to the image in the DB.
In your case, maybe you should take a look at Cloudinary.
The free plan is very generous, and the api is very easy to understand, despite the possibility to transform the images (crop, etc...).

Many server queries or not, for a single web app? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I'm new to web app development, and I try to make it as fast as possible.
I have 2 choices:
I can fetch all the data from the database one by one every time I require a refresh from the app,
Or I can fetch all the data in an array an work with the data "locally". The size of the array is around 800kb so it shouldn't be a big deal for the browser's cache.
I'm working with WebFocus, and the requests are made in pure SQL.
It's no problem for a SQL Server to deliver the data each time.
Just make sure, that you only fetch the data you need and that you connect only once to your SQL server.

The best technology to use when generating pictures/graphs [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I want to generate some picture, graphs to be more specific.
I would like them to render in a webpage.
I figured out that it's fairly easy to generate graph as pictures using javascript and HTML5 canvas.
But I realized that this might not be a good option, because javascript renders at client's side and calculating the graph may be complicated.
Also when I want to insert other pictures into such graph, javacript will expect those other pictures somewhere on client's computer.
So I guess that I should generate the picture before loading the page and then render the page with the picture on it...if there are no mistakes in my assumptions.
And if so, what would be the best way to achieve that? I work with Ruby and rails for the web app.
Thank you!

How often should AJAX reload specific content on the page? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm constructing an app where users can insert their preferences in a table. It is possible to load an updated version of the table via AJAX. I would like to load these updated versions from time to time, so the users will see almost always the newest version of the table, without reloading the page by themself. My questions regarding that are:
How often should the browser of the user request via AJAX a new version of the table?
Is that a bad approach? Maybe users want to reload the page manually.
Thank you for any answer in advance. Let me know how I can improve my question.
You should probably do it anywhere between 5 and 15 seconds. It's not a bad approach, and you can add a "refresh" button for manual refreshing. If your server is shared or there's lots of traffic, you can increase the duration to 30 seconds.
Note: This answer is based on my experience with web apps and previously built applications and web sites. There are no set standards for this behaviour.

Implementing algorithms using javascript [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am developing a webbased application using javascript and I am applying a lot of algorithms on my data and a lot of processing on data is required.
I was wondering is it the common practice to do all the processing and implementing algorithms using javascript or should I do them somewhere else ( i.e. server side ) and just give the results to javascript for viewing?
Depends on what you're trying to do!
Generally if it's data crunching, you want to do that server side, and then present it to the user. Sometimes it can be helpful to offload some of this work to your client- but keep in mind, if you're pushing computing onto the client, it may cause a page to take longer to load.

Categories

Resources