+ Reply to Thread
Results 1 to 2 of 2

Thread: When arrays and linked lists get larger do i need a DBMS

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    2

    When arrays and linked lists get larger do i need a DBMS

    in a program i am working on, the arrays and linked lists are getting bigger, and as the program is being used and more data is added, it is becoming very slow
    the main reason is the size of the linked lists and arrays, in the code, i have functions to retreive basic information from the stored lists on file
    but do i really need a database management system for such small program, all i want is to get the sum and average of certain numbers
    how can i speed the process without relying on a DBMS
    thanks
    Last edited by karl900; 06-21-2012 at 05:41 AM.

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    3
    you can always use some techniques that database management systems use themselves to speed the process of retreiving basic calculations
    for example, if you have a two dimentional array, with numbers that you frequently need to get the average or the sum for, why not add a new cell with the new sum as you add new items, this way you only need to reach to a certain row for the total or the average without reading all values and performing the calculation each time

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts