This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-24 20:40:34

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Notification Space

Just as a quick question, about how much space does a notification take up?

Any answer is appreciated!

With regards,

ErnieParke


http://i46.tinypic.com/35ismmc.png

Offline

 

#2 2013-02-24 21:46:49

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Notification Space

I will go into my copy of ScratchR and let you know in a few minutes.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2013-02-24 21:53:43

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Notification Space

Here are the numbers I found with my copy of ScratchR:
25 rows in the MySQL notifications table
16 KiB of data in that table
Divide 16 by 25, and we get .64 KiB per notification.
However, then multiply by two because it also stores a copy in memcached, so you get a grand total of 1.28 KiB per notification.

While this may not seem like a lot, there are thousands of these notifications sent daily. If 2000 are sent in a day (while I'm pretty sure it's way more than that), that takes up 2.5 MiB in the database per day. While that also may not seem like a lot, if that accumulates over a year, it takes up 912.5 MiB per year (.89 GiB).

Let's go with a more realistic amount: 5K per day
1.28 KiB per notification
6.25 MiB per day
2281.25 MiB (2.22 GiB) per year

Last edited by jvvg (2013-02-24 21:59:02)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#4 2013-02-24 22:08:17

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Notification Space

jvvg wrote:

Here are the numbers I found with my copy of ScratchR:
25 rows in the MySQL notifications table
16 KiB of data in that table
Divide 16 by 25, and we get .64 KiB per notification.
However, then multiply by two because it also stores a copy in memcached, so you get a grand total of 1.28 KiB per notification.

While this may not seem like a lot, there are thousands of these notifications sent daily. If 2000 are sent in a day (while I'm pretty sure it's way more than that), that takes up 2.5 MiB in the database per day. While that also may not seem like a lot, if that accumulates over a year, it takes up 912.5 MiB per year (.89 GiB).

Let's go with a more realistic amount: 5K per day
1.28 KiB per notification
6.25 MiB per day
2281.25 MiB (2.22 GiB) per year

Which, if none were deleted, would be nearly 13 GiB total!


Posts: 20000 - Show all posts

Offline

 

#5 2013-02-25 16:46:51

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Notification Space

veggieman001 wrote:

jvvg wrote:

Here are the numbers I found with my copy of ScratchR:
25 rows in the MySQL notifications table
16 KiB of data in that table
Divide 16 by 25, and we get .64 KiB per notification.
However, then multiply by two because it also stores a copy in memcached, so you get a grand total of 1.28 KiB per notification.

While this may not seem like a lot, there are thousands of these notifications sent daily. If 2000 are sent in a day (while I'm pretty sure it's way more than that), that takes up 2.5 MiB in the database per day. While that also may not seem like a lot, if that accumulates over a year, it takes up 912.5 MiB per year (.89 GiB).

Let's go with a more realistic amount: 5K per day
1.28 KiB per notification
6.25 MiB per day
2281.25 MiB (2.22 GiB) per year

Which, if none were deleted, would be nearly 13 GiB total!

I'd actually guess that it'd be closer to 20 GB in total because Scratch has been open for longer then 7 years, though that's just my inference. Strangely, this doesn't seem like a lot because I do have a 32 GB flash drive and only ~4.5 GB is being used for several programs, 44 songs/ambiences, plus much more. I'm guessing the real issue is keeping track of all of those notifications.

To jvvg:
So it looks like my guess of 2~3 KB per notification, which seems exaggerated now that I re-look at it, was too high. Well thanks for showing me! I'll definitely keep this in mind as the future comes along.

With respects and thanks,

ErnieParke


http://i46.tinypic.com/35ismmc.png

Offline

 

#6 2013-02-28 21:16:09

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Notification Space

Closed by request.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer