Things you always wanted to know the answer to [Vol. 3]

Things you always wanted to know the answer to [Vol. 3]

TOPIC CLOSED
TOPIC CLOSED
Author
Discussion

DervVW

2,223 posts

139 months

Tuesday 24th February 2015
quotequote all
BlackVanDyke said:
How can the entire neighbourhood know about a nasty drug dealer and yet they still be plying their trade and enjoying their freedom? mad
cynical says they are being watched for bigger fish

PH cycnical says because the police are out catching innocent motorists for... things

scarble

5,277 posts

157 months

Tuesday 24th February 2015
quotequote all
Has anyone in the neighbourhood tried calling the police and.. you know, telling them he's a drug dealer?
They call it "intelligence led policing"


fomb said:
This makes me wonder if you know how to computer. It's a database, there's no address space in a database, there's a primary key. I would assume the limit is imposed for performance reasons. Maybe the caching tier is dramatically faster this way, maybe it's to do with aggregates such as post counts for a thread, but it's definitely naff all to do with memory address space.
The data in the database has to be loaded in to memory, at that point it stops being a database and just becomes data in memory, with a pointer and a variable type and a length.
Databases store data, then an application comes along and talks to the database, gets some data from it then does stuff with the data from the database, in memory.
The data in the database has limits defined not for the database but for when it's being used outside the database.


Thanks for the racing tv suggestions thumbup
This is the one area where Netflix can't match old school TV.. not sure if Motors has a catchup service. I can never plan to be in front of the TV at a specific time smash

Edited by scarble on Tuesday 24th February 09:14

fomb

1,402 posts

211 months

Tuesday 24th February 2015
quotequote all
scarble said:
The data in the database has to be loaded in to memory, at that point it stops being a database and just becomes data in memory, with a pointer and a variable type and a length.
Databases store data, then an application comes along and talks to the database, gets some data from it then does stuff with the data from the database, in memory.
The data in the database has limits defined not for the database but for when it's being used outside the database.
Sure - but you don't load the entire DB into memory - just the bits you need, so the size of PH is irrelevant. Do you think Google loads the internet into RAM when you query that?

scarble

5,277 posts

157 months

Tuesday 24th February 2015
quotequote all
The size of threads, not the size of the whole PH.

fomb

1,402 posts

211 months

Tuesday 24th February 2015
quotequote all
Again - you don't load the whole thread, you load the 20 or so posts on the page, and get the DB to run a count of the number of posts in the thread for the pagination.

In the 20 years I've been building web apps I've not once had to consider memory address limits. I am pretty sure the 500 page limit is for performance reasons.

scarble

5,277 posts

157 months

Tuesday 24th February 2015
quotequote all
damn, ok you got me, I haven't a clue
getmecoat

amusingduck

9,396 posts

136 months

Wednesday 25th February 2015
quotequote all
fomb said:
scarble said:
The data in the database has to be loaded in to memory, at that point it stops being a database and just becomes data in memory, with a pointer and a variable type and a length.
Databases store data, then an application comes along and talks to the database, gets some data from it then does stuff with the data from the database, in memory.
The data in the database has limits defined not for the database but for when it's being used outside the database.
Sure - but you don't load the entire DB into memory - just the bits you need, so the size of PH is irrelevant. Do you think Google loads the internet into RAM when you query that?
Given how cheap memory is these days, it is possible to have the entire database in memory (if your database isn't enormous).

g7jtk

1,756 posts

154 months

Wednesday 25th February 2015
quotequote all
When am I going to win the lottery?

MissChief

7,101 posts

168 months

Wednesday 25th February 2015
quotequote all
g7jtk said:
When am I going to win the lottery?
Do you enter the Lottery? And if so how many lines? Wednesday and Friday? Euromillions too? Actually none of that matters because it's random chance.

Funkycoldribena

7,379 posts

154 months

Wednesday 25th February 2015
quotequote all
Why does every topic on ph turn into a statistics match?

fomb

1,402 posts

211 months

Wednesday 25th February 2015
quotequote all
MissChief said:
Do you enter the Lottery? And if so how many lines? Wednesday and Friday? Euromillions too? Actually none of that matters because it's random chance.
Well, not strictly true. If I enter two different lines I double my chances of winning down to a almost feasible 1 in 7 million.

mattdaniels

7,353 posts

282 months

Wednesday 25th February 2015
quotequote all
fomb said:
Again - you don't load the whole thread, you load the 20 or so posts on the page, and get the DB to run a count of the number of posts in the thread for the pagination.
I'd be surprised if every page request touches the database TBH.

ralphrj

3,523 posts

191 months

Wednesday 25th February 2015
quotequote all
StevieBee said:
Why is the BBC so obsessed with Cricket?

I accept that there are many that like the game but I can't help thinking that the level of coverage they give it is entirely out of kilter with the numbers of people that actually give a toss (no pun intended).
Why do you think the BBC are obsessed with cricket? They don't have the rights to show any games on TV but do cover them on the radio. I suppose at the moment they will be covering more than normal as the Cricket World Cup is on. Conveniently though there is very little other sport on at the moment (bar the Six Nations but that is at weekends).
StevieBee said:
More people pay to go and watch motor sport in the UK than cricket by a very considerable margin so why so much coverage?
Is that true? Please share your figures.

SpeckledJim

31,608 posts

253 months

Wednesday 25th February 2015
quotequote all
fomb said:
MissChief said:
Do you enter the Lottery? And if so how many lines? Wednesday and Friday? Euromillions too? Actually none of that matters because it's random chance.
Well, not strictly true. If I enter two different lines I double my chances of winning down to a almost feasible 1 in 7 million.
But you still need to invest £14m on 7m tickets to just get a 50-50 chance of winning any given draw.

StevieBee

12,860 posts

255 months

Wednesday 25th February 2015
quotequote all
[quote=ralphrj
StevieBee said:
More people pay to go and watch motor sport in the UK than cricket by a very considerable margin so why so much coverage?
Is that true? Please share your figures.
MIntel.

The only report I have at the moment is from 2002: Leading circuit operators in the motor sports sector in terms of admissions, 1998-2002

This showed a total of 2.15million people paid to watch motor sports in the UK in 2002. IIRC, Cricket was around 1.2m. I'll dig out later reports and report back!

Willy Nilly

12,511 posts

167 months

Wednesday 25th February 2015
quotequote all
Has anything the finance sector has done or sold in the last 25 year not turned to be illegal, immoral or just plain wrong?

ralphrj

3,523 posts

191 months

Thursday 26th February 2015
quotequote all
StevieBee said:
The only report I have at the moment is from 2002: Leading circuit operators in the motor sports sector in terms of admissions, 1998-2002

This showed a total of 2.15million people paid to watch motor sports in the UK in 2002. IIRC, Cricket was around 1.2m. I'll dig out later reports and report back!
I think that there might be a big difference between the 2002 figures and 2015 figures.

In terms of cricket, 2002 was the last year of the old B&H Cup which was then replaced with the Twenty20 Cup. That competition proved a lot more popular with the public and saw attendances increase dramatically. In addition the England cricket team was at that point still in the doldrums but post the 2005 Ashes crowds have been much higher. Also, some of the money from the sale of TV rights to Sky has been distributed around the test venues to increase the capacity of the grounds which supports the theory that attendances are increasing.

All in all I would expect cricket attendances to be significantly higher now than 13 years ago.

On the other hand I suspect that motorsport has gone in the other direction, mainly as a result in the decline in popularity of rallying. The RAC Rally used to be the biggest spectator event in the UK with estimates of 750,000 people attending. I suspect that the current figures are underwhelming as a result of the shorter format, the relocation to Wales, the drop in the number of manufacturers competing and the loss of Burns and McRae.


Whilst not quite the same measure as attendance figures it is worth considering the difference in value of the broadcasting rights to cricket and F1. Sky have the rights to both F1 and the England cricket matches. The actual figures are confidential but are thought to be in the region of £70m a year for the cricket and £20m a year for the F1. Admittedly the F1 deal is not exclusive but if it were the cost would be approximately £40m so still considerably less than the cricket.

P-Jay

10,563 posts

191 months

Thursday 26th February 2015
quotequote all
DervVW said:
BlackVanDyke said:
How can the entire neighbourhood know about a nasty drug dealer and yet they still be plying their trade and enjoying their freedom? mad
cynical says they are being watched for bigger fish

PH cycnical says because the police are out catching innocent motorists for... things
I've often wondered the same, My Wife had to spend part of her Childhood in a rough Council Estate, deep in the heart of it are two houses owned by two friends - they've been extended and extended to the point where the little grey box that was the original house sits on the front of it like an after-through, they have 8ft walls around them CCTV - the lot.

She's 30 now, but they've been that way since she started High School, she knows the names of the people who live there, everyone who lives there does, she knows they're drug dealers, everyone who lives there knows they are, but it seems they've been allowed to carry on like this for 20 years or more. My Wife has been told they get away with it by grassing up other, small time dealers to the Police and either the Police turn a blind eye to them or worse they hold some sort of unwritten 'get out of jail free card' given to them by a judge or something - it's a theme I've seen in UK crime fiction - but it seems insane to me - I know the 'war on drugs' was / is a stupid policy, but that doesn't mean we as a society should allow people like this to carry on because "well someone has too".

I have to assume it's less 'Hollywood' than that and they've simply not been stupid enough to get themselves arrested for anything and as such the Police are unable to investigate them.

IanCress

4,409 posts

166 months

Thursday 26th February 2015
quotequote all
Funkycoldribena said:
Why does every topic on ph turn into a statistics match?
It may seem that way, but actually only 34% of topics involve statistics.

scarble

5,277 posts

157 months

Thursday 26th February 2015
quotequote all
and 18% of PHers are now considering raising that ever so witty statistical anecdote.
TOPIC CLOSED
TOPIC CLOSED