Ok, this is really crazy. Since a while ago my WordPress website have been gradually becoming excessively slow so I decided investigating what was the matter and found out the database was 60MB big which I found quite unusual for a website that isn't more than a simple blog with about 5 pages, a couple of posts and three photo galleries.
What was my surprise when I've noticed that WordPress was storing the source code of the photos straight in the database(?!) so everytime I was calling a photo from a page/post WordPress would write
img src="02905792kcviujsfn20i kdjdogudgno dkgnmd9gud ...and about 20 paragraphs more of this....
Instead of a normal:
img src="http:path to the file"
Does anyone knows why this happens? I have a few WordPresses under my belt and it is the first time I saw such a thing.