Author Topic: Ground Combat Logs  (Read 1014 times)

0 Members and 1 Guest are viewing this topic.

Offline Froggiest1982 (OP)

  • Gold Supporter
  • Vice Admiral
  • *****
  • F
  • Posts: 1335
  • Thanked: 593 times
  • Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
    2022 Supporter 2022 Supporter : Donate for 2022
    2023 Supporter 2023 Supporter : Donate for 2023
Ground Combat Logs
« on: December 02, 2020, 12:29:04 AM »
So I am in a game almost 100 years with a save of roughly 25Mb DB.

After my first big ground combat (not even concluded yet) I am now noticing a 48Mb DB.

I then looked at what happened and it's all due to the insane amount of ground combat logs you get.

I am not sure if something was done already in there as I remember reading something that was actually just noticed that some events could get lost in the report and if I am not wrong the ground combat logs now are listed at the beginning and at the end there are all other events so that you could keep track which is great.

However, what about the DB size? I am concerned if I will get soon a 500Mb DB I am not sure how it's going to be handled performance-wise.
 
The following users thanked this post: Zhukov

Offline Barkhorn

  • Commodore
  • **********
  • B
  • Posts: 719
  • Thanked: 133 times
Re: Ground Combat Logs
« Reply #1 on: December 02, 2020, 01:08:48 AM »
DB size definitely does matter for performance.  Worst part is all your saves are in the same DB, so starting a brand new game will perform better the first time than on the 20th time.  I didn't notice any real event-related slowdown until ~100 years and three ground invasions, two of which were heavily-defended homeworlds and so generated an absolute mountain of events.

Edit:
My current DB with that game I mentioned above is at ~78mb.
 
The following users thanked this post: Froggiest1982

Offline Froggiest1982 (OP)

  • Gold Supporter
  • Vice Admiral
  • *****
  • F
  • Posts: 1335
  • Thanked: 593 times
  • Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
    2022 Supporter 2022 Supporter : Donate for 2022
    2023 Supporter 2023 Supporter : Donate for 2023
Re: Ground Combat Logs
« Reply #2 on: December 02, 2020, 01:42:52 AM »
Worst part is all your saves are in the same DB, so starting a brand new game will perform better the first time than on the 20th time.

All my games are 1 DB as I do edit the DB from time to time and it is easier this way. Plus I noticed that even cancelling a game the DB size it's still bigger than it's supposed to be.

Offline Droll

  • Vice Admiral
  • **********
  • D
  • Posts: 1704
  • Thanked: 599 times
Re: Ground Combat Logs
« Reply #3 on: December 02, 2020, 04:42:14 AM »
Ok so using SQLiteStudio I've done this so far for officer related events which works wonderfully:

Code: [Select]
delete from FCT_Gamelog
where (EventType = 129 or
       EventType = 90 or
       EventType = 291 or
       EventType = 98 or
       EventType = 42 or
       EventType = 296 or
       EventType = 292 or
       EventType = 99 or
       EventType = 256 or
       EventType = 257) and
       GameID = 38;

Warning: Your GameID might not be the same as mine so should be checked.
Warning: "EventType = 42" is not related to officers and instead refers to failed standing orders which I also wanted to remove.
The officer events refer to reassignments, promotions, health, retirement and the various events that fire when a specific type of officer is recruited.

You can check the thread that I posted this in as well for more info.
This should help you clear a lot of the combat stuff if you have a way to SQL query the DB.
 
The following users thanked this post: Froggiest1982

Offline Tree

  • Sub-Lieutenant
  • ******
  • Posts: 143
  • Thanked: 27 times
Re: Ground Combat Logs
« Reply #4 on: December 02, 2020, 06:17:09 AM »
Worst offender has got to be the Element vs GUC line. I got a fight against ~7000 tons of Precursors and my DB inflated by 5MB since last save.
Not too sure it's useful too, since there's also a recap where all the same units are lumped together, and another by formation.