make application with database MySQL is faster [closed] - java

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 was creating an application with java and database is mysql and it was running well but when data get large (more than 500 fields) application running slowly , so How Can I make it fast ?

For db
Add indexes for frequently searched fields
Think about table partitioning, rarely searched data should be stored in archive tables
For backend
Optimize queries
Minimize cursor fetching
For client
Use pagination to avoid large data loading
Use async loading (SwingWorker for swing, Service for javafx) to avoid UI hanging
Don't mix archive and working data in one UI form

Related

Database driven application means? [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 4 years ago.
Improve this question
I heard spring Framework should also be used to develop database driven applications.
what is exactly database driven application means?
Every application that persists data about you in a database to tailor the user experience to you is a database-driven app.
Examples :
Facebook saves your data so it knows who your friends are, the posts you have made and liked.
Twitter saves all of your tweets in a database, much like Facebook.
Uber uses databases to keep track of who needs to be picked up, who just got picked up, who needs to be charged how much, and how much to pay each driver, etc.
You can see full explanation here database-driven-application
So we can achieve this using spring like best-approach-to-creating-a-database-driven-java-website

Is there a database option that is local and does not require lots of overhead [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 7 years ago.
Improve this question
I need to create a local database for query purposes. I wish to build and populate a database with data from a number of text files, do the queries needed, and then destroy the database since it is no longer needed.
I am currently programing it in VB.net but would eventually want to port into a java or like language so other platforms can be used.
I prefer something that does not require the user to download something else to make this work. A person I asked did suggest SQLite but I am not sure how to load it internally.
Java SDK includes Derby Database - see the link.
That can be used without further download (only Java needs to be there of cause)

How can I manage feed from many different source? [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 7 years ago.
Improve this question
Went I read rss from diffrent sources such as bbc, voa,... How can i plan they 'by source', 'by time',... Should I use database ? I think it make my app slowly.
Not using a database would make your app slower. Without a database every time you restart the app it needs to fetch the rss feeds from the servers. It's sensible to store the data offline and update it with the new items on startup / with a button.
Think about additional operations which need a database: labeling, starring, saving for later, etc.
This provides an additional benefit: you can store the news offline so the user can read them without an active connection.

How to cache all the data files of mongodb? [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 8 years ago.
Improve this question
What I am trying to do is cache all the data that I have written into mongodb. So that all client requests are served from the cache. Should I consider ehcache or memcache.
Note the mongodb data is queried a lot, that is why I have thought to cache all of it at server start time, no writes are permitted to this data. I am using java for the application.
It makes very little sense to use a cache in front of MongoDB if you are using it for reads only. An extra cache is just going to take up more memory. MongoDB uses memory-mapped files and the Operating System will keep the most requested data in memory. If all of your data fits in memory, then MongoDB will returns all the documents straight from it - just like an additional cache would.

local databases for storing strings in java desktop application, currently using MongoDB [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 currently working on a project in which I am storing the name of program/application window titles and my knowledge of databases and datastores is fairly limited.
The idea is that I want to query the database with a string to see if it is present in the database. I am currently using MongoDB to do this but I have seen that MongoDB is mostly used to be run on a server which isn't what I'm looking for.
My question is - if I am just storing strings / searching for strings would a custom Array or HashMap be sufficient or would search times make it inefficient meaning that SQLite would be more ideal for this situation.
SQLite is perfect for this application. Firefox, for example, uses SQLite for storing its internal configuration settings (the about:config page). SQLite databases are single files, and it can be transparent to the user and requires very little in the way of system resources--unlike most server/client database solutions.
i would suggest to use java preferences api, if the data to be saved is not too much and if it needs to be available even when the application is terminated and restarted.,

Categories