When I see Greek or Hebrew I can only guess at the complexity.
Greek is quite easy because some of the letters are similar to ones we are used to. And some are math symbols which we often recognise. Hebrew is quite alien (and the wrong way round) but can still be learned with a bit of study.
hey guys, i'm developing a grocery store java desktop app, and i don't know much about databases and which one is better : an embedded data base or MySql,Postgres...considering performance and storage.
Both databases (MySQL and PostgreSQL) are very well known and have almost the same functionality. As to performance - it's opinion based only Joking! The thruth is that the performance depends on many factors, such as:
You are not running with a transaction log (see "The transaction log"). A transaction log improves commit time for transactions that insert, update, or delete rows.
You are using the 16-bit version of the Windows 3.x database engine. The 32-bit version has better performance, especially for larger databases.
You are loading huge amounts of data into a database. See "Tuning bulk operations" for methods to improve performance.
The database engine does not have an adequate amount of memory for caching database pages. See "The database engine" for command line options for controlling the cache size. Extra memory for your computer could improve database performance dramatically.
Your hard disk is excessively fragmented. This becomes more important as your database increases in size. The DOS and Windows database engines cannot do direct (fast) reading and writing when the database file is very fragmented. There are several utilities available for DOS and Windows to defragment your hard disk. One of these should be run periodically. You could put the database on a DOS disk partition by itself to eliminate fragmentation problems.
You are using a small page size for a large database. The page size is determined when the database is created by the initialization utility. You can find out the page size by using DBINFO. To change page size, you need to unload and reload your database.
The database table design is not good. A bad database design can result in time-consuming queries to get information from the database. If indexes will not solve your performance problem, consider alternative database designs.
Your hard disk is slow. A faster hard disk, a caching disk controller or a disk array can improve performance considerably.
In a multiuser environment, your network performance is slow.
You are fetching or inserting many rows of data. Consider using the multi-row operations.
please i dont know how you could help me am working on my final year project and this is the topic my supervisor choose for me pls can i get some help on this or sources that could help? am so so confused will be happy if i could get a reply soon. thank in advance
Output of this section of the code is
0 8 8 8
0 8 8
While the values in print statement are correct. The value printed on the jpanel using g.drawString
is not correct. The g.drawString method prints 0 in the graphics panel instead of 8. The value in indexOfBlock1
is 8 and value in indexOfBlock is 0. Value in val3 is also same as value in indexOfBlock1. But if
I print it through g.drawString then it shows value as 0.</pre>
I give print statements before and after drawString command. the values printed are correct in the print statements. But the value is not correct in the drawstring statement that occurs between the print statement.
I do not know how to check for code overwrites in java or any other language. Is there a debugger for java? can you point out where to look for help in identifying code overwrite errors.
The print statements suggest that the value is correct at the point you call drawString. So the only conclusion must be that some other code is overwriting it elsewhere. However, with such a small code sample in your question it is impossible to guess anything more. If you are using Netbeans or Eclipse as your IDE then I think they both support interactive debugging (Eclipse definitely does). If not then you can use jdb - The Java Debugger[^].
The fact is I do not know how to use jdb or debugger to spot code overwrite errors. I tried looking on the web, I could not find any. Do you or someone know how to use gbd to spot code overwrite errors? or guide me to a document or example where it is done?
Sorry, but it is impossible to teach you debugging in a technical form. It is a technique that you really need to learn for yourself, either from online tutorials, or by attending a training course. Time spent learning now will assist you in your future efforts. I already gave you a link to the online documentation, so you can start with that.
Last Visit: 21-Oct-19 7:38 Last Update: 21-Oct-19 7:38