[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
How to store shitload of small numbers in database most effectively?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 9
Thread images: 1
File: pobrane.png (4 KB, 225x225) Image search: [Google]
pobrane.png
4 KB, 225x225
How to store shitload of small numbers in database most effectively? I am building school management system where teachers put students' grades and in big schools it would be a lot of it. Grade is a number from 1 to 6 so pretty small numbers. Would it be better to store it in some CSV file or still insert into database?
>>
Excel sheet
>>
>>55268430
paper
>>
>>55268430
>How to store shitload of small numbers in database most effectively?
Don't use a database.
>>
Use mongoDB
>>
>>55268495
this mongoDB is "webscale"
>>
>>55268430
Pretty sure your notion of "a shitload" wouldn't even tickle a decent database.
In Postgre you could use smallint (2 bytes) if integer or real if fractions are needed. You should never use a csv file if optimizing for performance.
>>
>>55268508
ah yes. I say like around 50 000 per year. If I think about websites like Facebook it really isn't a shitload
>>
>>55268558
See, if your concern is about performance, searches on indexed fields are O(log n), so you will be the richest guy on earth before running into performance problems in your use case. Just design your database properly and don't listen to Mongoloid web devs
Thread replies: 9
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.