# Solid at scale - querying large datasets

**URL:** <https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937>\
**Category:** General Discussion\
**Created:** [December 8, 2022, 8:18pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937 "2022-12-08T20:18:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![stockcarracer](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/stockcarracer/32/3600_2.png) [@stockcarracer](https://forum.solidproject.org/u/stockcarracer)\
**Post date:** [December 8, 2022, 8:18pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/1 "2022-12-08T20:18:53Z")

</div>

Hi all, new to this forum but have been reading a bit.  
I’m not a coder but work in the data side of diversity & inclusion and privacy. I’m very interested in the potential of Solid but am struggling to understand how advanced it is for querying large datasets e.g. say I’m connected to 1 million pods, each representing a unique individual whose given permission to share certain demographic information such as age, and I want to know what % of the 1million people are aged between 50-55.  
Is this possible and computationally practical?  
Very grateful for any guidance, or direction as to where I can find it - thanks!!

---

<div class="post-metadata">

**Author:** ![hochstenbach](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/hochstenbach/32/2308_2.png) [@hochstenbach](https://forum.solidproject.org/u/hochstenbach)\
**Post date:** [December 9, 2022, 6:19am UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/2 "2022-12-09T06:19:33Z")

</div>

In Belgium, Flanders, there is a project to provide Solid pods to millions of Flemish citizens: see also [https://solidlab.be](https://solidlab.be). This will provide you an idea of the scale that Solid is used.

About searching information that is stored on pods: the insight is that there can be many ways of providing search functionality over many pods. From traditional crawling (or pushing notifications) to search engine services, federated searching , pods that themselves include search capabilities, link traversal searching. With Solid protocols there are more techniques available to allow for searching across nodes than there is with traditional web apis (http + html). For the (traditional) web at large there is just one option: crawling (mainly) unstructured data.

If one can build a search over standard web servers, then certainly one can build a search over pods.

---

<div class="post-metadata">

**Author:** ![stockcarracer](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/stockcarracer/32/3600_2.png) [@stockcarracer](https://forum.solidproject.org/u/stockcarracer)\
**Post date:** [December 9, 2022, 4:44pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/3 "2022-12-09T16:44:26Z")

</div>

Thanks @hochstenbach. Re: searching - for my use case this really needs to work with something nearing efficiency of a database configured for that purpose. Are you suggesting that is possible? If so do you know if anyone has achieved/or is working on that (I’ll keep my eye on the Flemish project)? Many thanks!

---

<div class="post-metadata">

**Author:** ![hochstenbach](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/hochstenbach/32/2308_2.png) [@hochstenbach](https://forum.solidproject.org/u/hochstenbach)\
**Post date:** [December 9, 2022, 7:01pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/4 "2022-12-09T19:01:54Z")

</div>

I come from the library world were we are used to harvesting data from many library websites and repositories with many millions of records. This we all do in our library field with protocols that were created in the late 1990s. In principle I don’t see a technical reason why Solid protocols couldn’t do this much more elegant/efficient, and keeping search indexes much easier up to date.

This said, I have not a broad enough vision in the indexing field of Solid pods to know which project actually already implemented this on that scale (there are not millions of pods available now). But if you want to learn more about all kinds of scalable searching over pods you might read the publications of [‪Ruben Taelman‬ - ‪Google Scholar‬](https://scholar.google.com/citations?user=2avKLOkAAAAJ&hl=en&oi=ao) , [‪Miel Vander Sande‬ - ‪Google Scholar‬](https://scholar.google.com/citations?user=qt8_LqsAAAAJ&hl=en&oi=ao) and [‪Ruben Verborgh‬ - ‪Google Scholar‬](https://scholar.google.com/citations?user=EczUsIYAAAAJ&hl=en&oi=ao) (or contact them directly)

---

<div class="post-metadata">

**Author:** ![stockcarracer](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/stockcarracer/32/3600_2.png) [@stockcarracer](https://forum.solidproject.org/u/stockcarracer)\
**Post date:** [December 11, 2022, 3:51pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/5 "2022-12-11T15:51:49Z")

</div>

Thanks @hochstenbach. Very useful to know. I will explore further.

---

<div class="post-metadata">

**Author:** ![lecoqlibre](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/lecoqlibre/32/3479_2.png) [@lecoqlibre](https://forum.solidproject.org/u/lecoqlibre)\
**Post date:** [December 18, 2022, 1:40pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/6 "2022-12-18T13:40:11Z")

</div>

We are also [investigating this problem with INRIA](https://forum.solidproject.org/t/starting-a-research-project-about-searching-and-querying-data-in-a-solid-ecosystem/5734) (France).

One way to solve this is with indexes: indexing data on each POD. Solid has currently [a proposal](https://github.com/solid/solid/blob/main/proposals/data-discovery.md) to index object types (to find objects of a certain type).

We are trying to add the ability to index properties and other information.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [December 18, 2022, 5:55pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/7 "2022-12-18T17:55:43Z")

</div>

That is an old version of the type-indexes. The latest spec (still under development) is [here](https://github.com/solid/type-indexes).

---

<div class="post-metadata">

**Author:** ![toychicken](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/toychicken/32/3620_2.png) [@toychicken](https://forum.solidproject.org/u/toychicken)\
**Post date:** [December 19, 2022, 4:31pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/8 "2022-12-19T16:31:41Z")

</div>

I’m new to this, but my understanding is that once the user has given you permission, there’s nothing to stop you taking the data and storing in your own DB. Obviously, it’s then relatively easy to query that data.

As for _maintaining_ the data, I guess there’d need to be a mechanism to get updates from Pods. Also, as a responsible data owner, you might want to have some mechanisms to remove users’ data from your systems if they rescind your access - but I don’t know how feasible that is.

---

<div class="post-metadata">

**Author:** ![stockcarracer](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/stockcarracer/32/3600_2.png) [@stockcarracer](https://forum.solidproject.org/u/stockcarracer)\
**Post date:** [December 20, 2022, 5:44pm UTC](https://forum.solidproject.org/t/solid-at-scale-querying-large-datasets/5937/9 "2022-12-20T17:44:42Z")

</div>

Thanks @lecoqlibre and @jeffz , good to know, cheers. @toychicken appreciate the suggestion but this would defeat the purpose for our use case (user’s retaining control over their data). Thanks.
