# In Memory Data Sources

**URL:** <https://forum.servoy.com/t/in-memory-data-sources/19924>\
**Category:** Classic Servoy\
**Created:** [March 16, 2019, 5:50pm UTC](https://forum.servoy.com/t/in-memory-data-sources/19924 "2019-03-16T17:50:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)\
**Post date:** [March 16, 2019, 5:50pm UTC](https://forum.servoy.com/t/in-memory-data-sources/19924/1 "2019-03-16T17:50:33Z")

</div>

Hi all,

Is the actual data loaded into a ‘In Memory Data Source’ shared by all clients, or can you load different data into each client?

I have a complicated query that will only load a tiny subset of data at the time to stay fast and responsive, so different clients may look at different lists of records simultaneously…

---

<div class="post-metadata">

**Author:** ![rvanderburg](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/rvanderburg/32/5076_2.png) [@rvanderburg](https://forum.servoy.com/u/rvanderburg)\
**Post date:** [March 16, 2019, 8:09pm UTC](https://forum.servoy.com/t/in-memory-data-sources/19924/2 "2019-03-16T20:09:39Z")

</div>

Its per client

---

<div class="post-metadata">

**Author:** ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)\
**Post date:** [March 17, 2019, 10:18pm UTC](https://forum.servoy.com/t/in-memory-data-sources/19924/3 "2019-03-17T22:18:35Z")

</div>

Great. Thanks for confirming.

I have now found more info here:

UX Pattern: Using In Memory Data in Servoy to Accelerate delivery  
[https://www.youtube.com/watch?v=\_FS92nqXibk](https://www.youtube.com/watch?v=_FS92nqXibk)

I had missed the fact that Servoy has an in-memory database that you can connect to like any other database if you want to share in-memory data between clients…

I think the client will be impressed ![;-)]( "Wink") by what I have built combining postgreSQL windowing functions and Servoy in-Memory data…  
It is crazy fast even though its doing running totals on up to 50,000 records…

---

<div class="post-metadata">

**Author:** ![sdevlin](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/sdevlin/32/4488_2.png) [@sdevlin](https://forum.servoy.com/u/sdevlin)\
**Post date:** [March 18, 2019, 1:08pm UTC](https://forum.servoy.com/t/in-memory-data-sources/19924/4 "2019-03-18T13:08:46Z")

</div>

Hi Christian,

( Thanks for the webinar plug ![;-)]( "Wink") )

Yes you can create a mem table which is shared. It functions the same way as other shared data sources, using HSQLDB.  
Only difference is that the schema must be recreated every time the server starts and then you probably want to seed it with data, usually done with a script, either by first-access lazy load, or by batch processor.

In developer you can have DBI files, and other data-bound constructs (forms, valuelists, etc) which will generate warnings on start-up, but then you can sync to DBI files to resolve and auto build the schema as well.
