database sorting algorithms. - Mailing list pgsql-general

From Jian He
Subject database sorting algorithms.
Date
Msg-id CAMV54g0QLUWEXdrCbywoB3C-UGhLMBqL49xAKMk6j1w7cmXCXQ@mail.gmail.com
Whole thread Raw
Responses Re: database sorting algorithms.
Re: database sorting algorithms.
List pgsql-general

Been self study Database, from database I deep dived into sorting algorithms.

Databases can do in-memory QuickSort. It also has an on-disk MergeSort.

For MergeSort: I follow this tutorial https://youtu.be/6pV2IF0fgKY?t=1108  (around 1 minutes only)

But I am still not fully understanding about nlogn. I understand how many passes it will take, that is logn. 
Yes each pass will sort N elements.
But I still don't get the N stand for in n*logn.
Why does each pass take  n time to sort it?






pgsql-general by date:

Previous
From: Mike Beachy
Date:
Subject: Re: -1/0 virtualtransaction
Next
From: Francisco Olarte
Date:
Subject: Re: database sorting algorithms.