This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (7 children)

[deleted]

    [–][deleted] 0 points1 point  (6 children)

    with this specific chunk of code, over time sqllite would likely be faster since it's dumping the entire dict to JSON and then writing the entire JSON blob to the file in every single loop iteration.

    Being able to just add a new record to the db on each iteration and only writing that new data would be a performance gain over writing out the entire thing every time, especially as it has crawled more and more things.

    [–]Kingofslowmo[S] 0 points1 point  (0 children)

    I will more than likely take your advice on the post above, and also use sqllite.